aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/github.com/99designs/gqlgen/codegen/complexity.go
blob: e9c6a20ee83abf7c99d8ef630444a653fbb918c2 (plain) (tree)
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] = append(m[f.GoFieldName], f)
	}

	return m
}