github.com/HaswinVidanage/gqlgen@v0.8.1-0.20220609041233-69528c1bf712/example/scalars/schema.graphql (about) 1 type Query { 2 user(id: ID!): User 3 search(input: SearchArgs = {location: "37,144", isBanned: false}): [User!]! 4 } 5 6 type User { 7 id: ID! 8 name: String! 9 created: Timestamp 10 isBanned: Banned! 11 primitiveResolver: String! 12 customResolver: Point! 13 address: Address 14 tier: Tier 15 } 16 17 type Address { 18 id: ID! 19 location: Point 20 } 21 22 input SearchArgs { 23 location: Point 24 createdAfter: Timestamp 25 isBanned: Banned # TODO: This can be a Boolean again once multiple backing types are allowed 26 } 27 28 enum Tier { 29 A 30 B 31 C 32 } 33 34 scalar Timestamp 35 scalar Point 36 scalar Banned