Skip to content

Commit

Permalink
[RFC] Add graphql.disable config option at the list and field levels
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Aug 23, 2021
1 parent b3eefc1 commit 6b4dd06
Show file tree
Hide file tree
Showing 38 changed files with 703 additions and 522 deletions.
18 changes: 9 additions & 9 deletions examples-staging/assets-cloud/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ interface FileFieldOutput {
src: String!
}

input PostWhereUniqueInput {
id: ID
}

type LocalImageFieldOutput implements ImageFieldOutput {
id: ID!
filesize: Int!
Expand Down Expand Up @@ -124,10 +128,6 @@ input DateTimeNullableFilter {
not: DateTimeNullableFilter
}

input PostWhereUniqueInput {
id: ID
}

input PostOrderByInput {
id: OrderDirection
title: OrderDirection
Expand Down Expand Up @@ -205,6 +205,11 @@ type Author {
postsCount(where: PostWhereInput! = {}): Int
}

input AuthorWhereUniqueInput {
id: ID
email: String
}

input AuthorWhereInput {
AND: [AuthorWhereInput!]
OR: [AuthorWhereInput!]
Expand All @@ -221,11 +226,6 @@ input PostManyRelationFilter {
none: PostWhereInput
}

input AuthorWhereUniqueInput {
id: ID
email: String
}

input AuthorOrderByInput {
id: OrderDirection
name: OrderDirection
Expand Down
18 changes: 9 additions & 9 deletions examples-staging/assets-local/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ enum ImageExtension {
gif
}

input PostWhereUniqueInput {
id: ID
}

type LocalImageFieldOutput implements ImageFieldOutput {
id: ID!
filesize: Int!
Expand Down Expand Up @@ -109,10 +113,6 @@ input DateTimeNullableFilter {
not: DateTimeNullableFilter
}

input PostWhereUniqueInput {
id: ID
}

input PostOrderByInput {
id: OrderDirection
title: OrderDirection
Expand Down Expand Up @@ -183,6 +183,11 @@ type Author {
postsCount(where: PostWhereInput! = {}): Int
}

input AuthorWhereUniqueInput {
id: ID
email: String
}

input AuthorWhereInput {
AND: [AuthorWhereInput!]
OR: [AuthorWhereInput!]
Expand All @@ -199,11 +204,6 @@ input PostManyRelationFilter {
none: PostWhereInput
}

input AuthorWhereUniqueInput {
id: ID
email: String
}

input AuthorOrderByInput {
id: OrderDirection
name: OrderDirection
Expand Down
10 changes: 5 additions & 5 deletions examples-staging/auth/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ type PasswordState {
isSet: Boolean!
}

input UserWhereUniqueInput {
id: ID
email: String
}

input UserWhereInput {
AND: [UserWhereInput!]
OR: [UserWhereInput!]
Expand Down Expand Up @@ -116,11 +121,6 @@ input BooleanNullableFilter {
not: BooleanNullableFilter
}

input UserWhereUniqueInput {
id: ID
email: String
}

input UserOrderByInput {
id: OrderDirection
name: OrderDirection
Expand Down
26 changes: 13 additions & 13 deletions examples-staging/basic/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ type PasswordState {
isSet: Boolean!
}

input UserWhereUniqueInput {
id: ID
email: String
}

type LocalImageFieldOutput implements ImageFieldOutput {
id: ID!
filesize: Int!
Expand Down Expand Up @@ -211,11 +216,6 @@ input PostManyRelationFilter {
none: PostWhereInput
}

input UserWhereUniqueInput {
id: ID
email: String
}

input UserOrderByInput {
id: OrderDirection
name: OrderDirection
Expand Down Expand Up @@ -305,6 +305,10 @@ type PhoneNumber {
value: String
}

input PhoneNumberWhereUniqueInput {
id: ID
}

input PhoneNumberWhereInput {
AND: [PhoneNumberWhereInput!]
OR: [PhoneNumberWhereInput!]
Expand All @@ -315,10 +319,6 @@ input PhoneNumberWhereInput {
value: StringNullableFilter
}

input PhoneNumberWhereUniqueInput {
id: ID
}

input PhoneNumberOrderByInput {
id: OrderDirection
type: OrderDirection
Expand Down Expand Up @@ -366,6 +366,10 @@ type Post_content_DocumentField {
document(hydrateRelationships: Boolean! = false): JSON!
}

input PostWhereUniqueInput {
id: ID
}

input PostWhereInput {
AND: [PostWhereInput!]
OR: [PostWhereInput!]
Expand All @@ -388,10 +392,6 @@ input DateTimeNullableFilter {
not: DateTimeNullableFilter
}

input PostWhereUniqueInput {
id: ID
}

input PostOrderByInput {
id: OrderDirection
title: OrderDirection
Expand Down
58 changes: 29 additions & 29 deletions examples-staging/ecommerce/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ type PasswordState {
isSet: Boolean!
}

input UserWhereUniqueInput {
id: ID
email: String
}

input UserWhereInput {
AND: [UserWhereInput!]
OR: [UserWhereInput!]
Expand Down Expand Up @@ -256,11 +261,6 @@ input DateTimeNullableFilter {
not: DateTimeNullableFilter
}

input UserWhereUniqueInput {
id: ID
email: String
}

input UserOrderByInput {
id: OrderDirection
name: OrderDirection
Expand Down Expand Up @@ -362,6 +362,10 @@ type Product {
user: User
}

input ProductWhereUniqueInput {
id: ID
}

input ProductWhereInput {
AND: [ProductWhereInput!]
OR: [ProductWhereInput!]
Expand All @@ -386,10 +390,6 @@ input IntNullableFilter {
not: IntNullableFilter
}

input ProductWhereUniqueInput {
id: ID
}

input ProductOrderByInput {
id: OrderDirection
name: OrderDirection
Expand Down Expand Up @@ -499,6 +499,10 @@ input CloudinaryImageFormat {
transformation: String
}

input ProductImageWhereUniqueInput {
id: ID
}

input ProductImageWhereInput {
AND: [ProductImageWhereInput!]
OR: [ProductImageWhereInput!]
Expand All @@ -508,10 +512,6 @@ input ProductImageWhereInput {
product: ProductWhereInput
}

input ProductImageWhereUniqueInput {
id: ID
}

input ProductImageOrderByInput {
id: OrderDirection
altText: OrderDirection
Expand Down Expand Up @@ -557,6 +557,10 @@ type CartItem {
user: User
}

input CartItemWhereUniqueInput {
id: ID
}

input CartItemWhereInput {
AND: [CartItemWhereInput!]
OR: [CartItemWhereInput!]
Expand All @@ -567,10 +571,6 @@ input CartItemWhereInput {
user: UserWhereInput
}

input CartItemWhereUniqueInput {
id: ID
}

input CartItemOrderByInput {
id: OrderDirection
quantity: OrderDirection
Expand Down Expand Up @@ -603,6 +603,10 @@ type OrderItem {
order: Order
}

input OrderItemWhereUniqueInput {
id: ID
}

input OrderItemWhereInput {
AND: [OrderItemWhereInput!]
OR: [OrderItemWhereInput!]
Expand All @@ -616,10 +620,6 @@ input OrderItemWhereInput {
order: OrderWhereInput
}

input OrderItemWhereUniqueInput {
id: ID
}

input OrderItemOrderByInput {
id: OrderDirection
name: OrderDirection
Expand Down Expand Up @@ -677,6 +677,10 @@ type Order {
charge: String
}

input OrderWhereUniqueInput {
id: ID
}

input OrderWhereInput {
AND: [OrderWhereInput!]
OR: [OrderWhereInput!]
Expand All @@ -694,10 +698,6 @@ input OrderItemManyRelationFilter {
none: OrderItemWhereInput
}

input OrderWhereUniqueInput {
id: ID
}

input OrderOrderByInput {
id: OrderDirection
total: OrderDirection
Expand Down Expand Up @@ -753,6 +753,10 @@ type Role {
assignedToCount(where: UserWhereInput! = {}): Int
}

input RoleWhereUniqueInput {
id: ID
}

input RoleWhereInput {
AND: [RoleWhereInput!]
OR: [RoleWhereInput!]
Expand All @@ -779,10 +783,6 @@ input UserManyRelationFilter {
none: UserWhereInput
}

input RoleWhereUniqueInput {
id: ID
}

input RoleOrderByInput {
id: OrderDirection
name: OrderDirection
Expand Down
8 changes: 4 additions & 4 deletions examples-staging/embedded-nextjs/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ type Post {
content: String
}

input PostWhereUniqueInput {
id: ID
}

input PostWhereInput {
AND: [PostWhereInput!]
OR: [PostWhereInput!]
Expand Down Expand Up @@ -54,10 +58,6 @@ input NestedStringNullableFilter {
not: NestedStringNullableFilter
}

input PostWhereUniqueInput {
id: ID
}

input PostOrderByInput {
id: OrderDirection
title: OrderDirection
Expand Down
Loading

0 comments on commit 6b4dd06

Please sign in to comment.