aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/99designs/gqlgen/codegen/type.go
blob: 4a14454cf581222828c5b8e62989115ad18db51d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package codegen

import (
	"github.com/99designs/gqlgen/codegen/config"
)

func (b *builder) buildTypes() map[string]*config.TypeReference {
	ret := map[string]*config.TypeReference{}

	for _, ref := range b.Binder.References {
		for ref != nil {
			ret[ref.UniquenessKey()] = ref

			ref = ref.Elem()
		}
	}
	return ret
}