Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
206 lines (191 sloc) 3.94 KB
interface BaseGraphQLObject {
id: ID!
createdAt: DateTime!
createdById: String!
updatedAt: DateTime
updatedById: String
deletedAt: DateTime
deletedById: String
version: Int!
}
type BaseModel implements BaseGraphQLObject {
id: ID!
createdAt: DateTime!
createdById: String!
updatedAt: DateTime
updatedById: String
deletedAt: DateTime
deletedById: String
version: Int!
}
type BaseModelUUID implements BaseGraphQLObject {
id: ID!
createdAt: DateTime!
createdById: String!
updatedAt: DateTime
updatedById: String
deletedAt: DateTime
deletedById: String
version: Int!
}
input BaseWhereInput {
id_eq: String
id_in: [String!]
createdAt_eq: String
createdAt_lt: String
createdAt_lte: String
createdAt_gt: String
createdAt_gte: String
createdById_eq: String
updatedAt_eq: String
updatedAt_lt: String
updatedAt_lte: String
updatedAt_gt: String
updatedAt_gte: String
updatedById_eq: String
deletedAt_all: Boolean
deletedAt_eq: String
deletedAt_lt: String
deletedAt_lte: String
deletedAt_gt: String
deletedAt_gte: String
deletedById_eq: String
}
"""
The javascript `Date` as string. Type represents date and time as the ISO Date string.
"""
scalar DateTime
interface DeleteResponse {
id: ID!
}
type Mutation {
createUser(data: UserCreateInput!): User!
updateUser(data: UserUpdateInput!, where: UserWhereUniqueInput!): User!
deleteUser(where: UserWhereUniqueInput!): StandardDeleteResponse!
}
type Query {
users(offset: Int, limit: Int = 50, where: UserWhereInput, orderBy: UserOrderByInput): [User!]!
user(where: UserWhereUniqueInput!): User!
}
type StandardDeleteResponse {
id: ID!
}
enum StringEnum {
FOO
BAR
}
type User implements BaseGraphQLObject {
id: ID!
createdAt: DateTime!
createdById: String!
updatedAt: DateTime
updatedById: String
deletedAt: DateTime
deletedById: String
version: Int!
firstName: String!
lastName: String
email: String!
age: Int!
isRequired: Boolean!
stringEnumField: StringEnum!
rating: Float!
}
input UserCreateInput {
firstName: String!
lastName: String
email: String!
age: Float!
isRequired: Boolean!
stringEnumField: StringEnum!
rating: Float!
}
enum UserOrderByInput {
createdAt_ASC
createdAt_DESC
updatedAt_ASC
updatedAt_DESC
deletedAt_ASC
deletedAt_DESC
firstName_ASC
firstName_DESC
lastName_ASC
lastName_DESC
email_ASC
email_DESC
age_ASC
age_DESC
isRequired_ASC
isRequired_DESC
stringEnumField_ASC
stringEnumField_DESC
rating_ASC
rating_DESC
}
input UserUpdateInput {
firstName: String
lastName: String
email: String
age: Float
isRequired: Boolean
stringEnumField: StringEnum
rating: Float
}
input UserWhereInput {
id_eq: String
id_in: [String!]
createdAt_eq: String
createdAt_lt: String
createdAt_lte: String
createdAt_gt: String
createdAt_gte: String
createdById_eq: String
updatedAt_eq: String
updatedAt_lt: String
updatedAt_lte: String
updatedAt_gt: String
updatedAt_gte: String
updatedById_eq: String
deletedAt_all: Boolean
deletedAt_eq: String
deletedAt_lt: String
deletedAt_lte: String
deletedAt_gt: String
deletedAt_gte: String
deletedById_eq: String
firstName_eq: String
firstName_contains: String
firstName_startsWith: String
firstName_endsWith: String
firstName_in: [String!]
lastName_eq: String
lastName_contains: String
lastName_startsWith: String
lastName_endsWith: String
lastName_in: [String!]
email_eq: String
email_contains: String
email_startsWith: String
email_endsWith: String
email_in: [String!]
age_eq: Float
age_gt: Float
age_gte: Float
age_lt: Float
age_lte: Float
age_in: [Int!]
isRequired_eq: Boolean
isRequired_in: [Boolean!]
stringEnumField_eq: StringEnum
stringEnumField_in: [StringEnum!]
rating_eq: Float
rating_gt: Float
rating_gte: Float
rating_lt: Float
rating_lte: Float
rating_in: [Float!]
}
input UserWhereUniqueInput {
id: String
email: String
}
You can’t perform that action at this time.