github.com/speedoops/go-gqlrest-demo@v0.0.0-20220710122636-5c6460aeab4f/graph/schema.graphqls (about) 1 # GraphQL图入口定义 2 # https://graphql-rules.com/ 3 # ---------------- 4 schema { 5 query: Query 6 mutation: Mutation 7 } 8 9 type Mutation 10 type Query 11 12 type User { 13 id: ID! 14 name: String! 15 role: Role! @hide(for: ["rest", "cli"]) 16 }