Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Aug 25, 2021
1 parent 241bc93 commit ea0a058
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 1 deletion.
69 changes: 69 additions & 0 deletions examples/default-values/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ input TaskWhereInput {
OR: [TaskWhereInput!]
NOT: [TaskWhereInput!]
id: IDFilter
label: StringNullableFilter
priority: TaskPriorityTypeNullableFilter
isComplete: BooleanNullableFilter
assignedTo: PersonWhereInput
finishBy: DateTimeNullableFilter
}

input IDFilter {
Expand All @@ -38,8 +43,63 @@ input IDFilter {
not: IDFilter
}

input StringNullableFilter {
equals: String
in: [String!]
notIn: [String!]
lt: String
lte: String
gt: String
gte: String
contains: String
startsWith: String
endsWith: String
not: NestedStringNullableFilter
}

input NestedStringNullableFilter {
equals: String
in: [String!]
notIn: [String!]
lt: String
lte: String
gt: String
gte: String
contains: String
startsWith: String
endsWith: String
not: NestedStringNullableFilter
}

input TaskPriorityTypeNullableFilter {
equals: TaskPriorityType
in: [TaskPriorityType!]
notIn: [TaskPriorityType!]
not: TaskPriorityTypeNullableFilter
}

input BooleanNullableFilter {
equals: Boolean
not: BooleanNullableFilter
}

input DateTimeNullableFilter {
equals: String
in: [String!]
notIn: [String!]
lt: String
lte: String
gt: String
gte: String
not: DateTimeNullableFilter
}

input TaskOrderByInput {
id: OrderDirection
label: OrderDirection
priority: OrderDirection
isComplete: OrderDirection
finishBy: OrderDirection
}

enum OrderDirection {
Expand Down Expand Up @@ -100,10 +160,19 @@ input PersonWhereInput {
OR: [PersonWhereInput!]
NOT: [PersonWhereInput!]
id: IDFilter
name: StringNullableFilter
tasks: TaskManyRelationFilter
}

input TaskManyRelationFilter {
every: TaskWhereInput
some: TaskWhereInput
none: TaskWhereInput
}

input PersonOrderByInput {
id: OrderDirection
name: OrderDirection
}

input PersonUpdateInput {
Expand Down
2 changes: 1 addition & 1 deletion examples/default-values/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export const lists = createSchema({
defaultValue: () =>
new Date(new Date().setUTCDate(new Date().getUTCDate() + 7)).toUTCString(),
}),
graphql: { isEnabled: { filter: true, orderBy: true } },
},
graphql: { isEnabled: { filter: true, orderBy: true } },
}),
Person: list({
fields: {
Expand Down

0 comments on commit ea0a058

Please sign in to comment.