aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/99designs/gqlgen/codegen/complexity.go
blob: 66d21a840e5e4b84c9d000f69cd7cd4879134d8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
package codegen

func (o *Object) UniqueFields() map[string]*Field {
	m := map[string]*Field{}

	for _, f := range o.Fields {
		m[f.GoFieldName] = f
	}

	return m
}