Skip to content

Commit

Permalink
Fix config and update graphql schema for test/example projects
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamsi committed Jun 25, 2024
1 parent 2ce5246 commit 3d8f0d8
Show file tree
Hide file tree
Showing 51 changed files with 51 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/assets-local/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/assets-s3/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/auth/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/cloudinary/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/custom-admin-ui-logo/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/custom-admin-ui-navigation/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/custom-admin-ui-pages/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/custom-field-view/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/custom-field/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/custom-id/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/custom-output-paths/my-graphql.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/custom-session-invalidation/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/custom-session-jwt/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/custom-session-next-auth/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/custom-session-redis/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/custom-session/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/default-values/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/document-field/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/extend-express-app/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/extend-graphql-schema-graphql-ts/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/extend-graphql-schema-nexus/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/extend-graphql-subscriptions/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/extend-prisma-schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/field-groups/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/framework-astro/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/framework-nextjs-app-directory/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/framework-nextjs-pages-directory/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/framework-remix/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/graphql-ts-gql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/hooks/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/limits/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/omit/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/reuse/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/script/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/singleton/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/testing/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/transactions/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/usecase-blog-moderated/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/usecase-blog/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/usecase-relationship-union/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/usecase-roles/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/usecase-todo/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/usecase-versioning/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
1 change: 1 addition & 0 deletions examples/virtual-field/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/types/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export type KeystoneConfig<TypeInfo extends BaseKeystoneTypeInfo = BaseKeystoneT
basePath: string
}) => MaybePromise<{ kind: 'redirect', to: string } | void>
/** Generate .tsx files instead of .js */
tsx: boolean
tsx?: boolean
}
}

Expand Down
1 change: 1 addition & 0 deletions tests/sandbox/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ type KeystoneMeta {
}

type KeystoneAdminMeta {
routePrefix: String!
lists: [KeystoneAdminUIListMeta!]!
list(key: String!): KeystoneAdminUIListMeta
}
Expand Down
Loading

0 comments on commit 3d8f0d8

Please sign in to comment.