-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample.graphql
45 lines (43 loc) · 976 Bytes
/
sample.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# ## Scalars
# type User {
# id: ID!
# fullName: String
# lastLogin: DateTime
# loginCount: Int
# rating: Float
# notes: JSON
# active: Boolean
# salt: Secret
# renewDate: Date
# }
# ## Queries/Mutations
# type Query {
# getUserRest(id: ID!): User
# @rest(
# method: GET
# endpoint: ""
# headers: [{ name: "", value: "" }]
# resultroot: ""
# setters: [{ field: "", path: "" }]
# configuration: ""
# )
# getUserGraphql(id: ID!): User
# @graphql(endpoint: "", prefix: { value: "", includeRootOperations: true })
# getUserDb(id: ID!): User
# @dbquery(type: "", table: "", query: "", configuration: "")
# }
# ## interfaces without concrete types will be auto-mocked
# interface User {
# id: ID!
# fullName: String
# lastLogin: DateTime
# loginCount: Int
# rating: Float
# notes: JSON
# active: Boolean
# salt: Secret
# renewDate: Date
# }
# type Query {
# getUser(id: ID): User
# }