Last active
October 29, 2022 13:58
-
-
Save VictorKabata/3e5283359133dc81d47c0f1c20440103 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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