Skip to content

Instantly share code, notes, and snippets.

@VictorKabata
Last active October 29, 2022 13:58
Show Gist options
  • Save VictorKabata/3e5283359133dc81d47c0f1c20440103 to your computer and use it in GitHub Desktop.
Save VictorKabata/3e5283359133dc81d47c0f1c20440103 to your computer and use it in GitHub Desktop.
fields := graphql.Fields{
"notes": &graphql.Field{
Name: "Get all notes",
Type: graphql.NewList(noteType),
Description: "Get list of all notes",
Resolve: func(params graphql.ResolveParams) (interface{}, error) {
return notes, nil
},
},
// Additional fields ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment