Skip to content

Commit

Permalink
Remove getGqlNames function from frontend, prefer the meta query (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens authored Aug 5, 2024
1 parent eb1b0a3 commit 73a9132
Show file tree
Hide file tree
Showing 73 changed files with 2,132 additions and 550 deletions.
28 changes: 28 additions & 0 deletions examples/assets-local/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ type KeystoneAdminUIListMeta {
labelField: String!
fields: [KeystoneAdminUIFieldMeta!]!
groups: [KeystoneAdminUIFieldGroupMeta!]!
graphql: KeystoneAdminUIGraphQL!
initialSort: KeystoneAdminUISort
isHidden: Boolean!
isSingleton: Boolean!
Expand Down Expand Up @@ -242,6 +243,33 @@ type KeystoneAdminUIFieldGroupMeta {
fields: [KeystoneAdminUIFieldMeta!]!
}

type KeystoneAdminUIGraphQL {
names: KeystoneAdminUIGraphQLNames!
}

type KeystoneAdminUIGraphQLNames {
outputTypeName: String!
whereInputName: String!
whereUniqueInputName: String!
createInputName: String!
createMutationName: String!
createManyMutationName: String!
relateToOneForCreateInputName: String!
relateToManyForCreateInputName: String!
itemQueryName: String!
listOrderName: String!
listQueryCountName: String!
listQueryName: String!
updateInputName: String!
updateMutationName: String!
updateManyInputName: String!
updateManyMutationName: String!
relateToOneForUpdateInputName: String!
relateToManyForUpdateInputName: String!
deleteMutationName: String!
deleteManyMutationName: String!
}

type KeystoneAdminUISort {
field: String!
direction: KeystoneAdminUISortDirection!
Expand Down
28 changes: 28 additions & 0 deletions examples/assets-s3/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ type KeystoneAdminUIListMeta {
labelField: String!
fields: [KeystoneAdminUIFieldMeta!]!
groups: [KeystoneAdminUIFieldGroupMeta!]!
graphql: KeystoneAdminUIGraphQL!
initialSort: KeystoneAdminUISort
isHidden: Boolean!
isSingleton: Boolean!
Expand Down Expand Up @@ -242,6 +243,33 @@ type KeystoneAdminUIFieldGroupMeta {
fields: [KeystoneAdminUIFieldMeta!]!
}

type KeystoneAdminUIGraphQL {
names: KeystoneAdminUIGraphQLNames!
}

type KeystoneAdminUIGraphQLNames {
outputTypeName: String!
whereInputName: String!
whereUniqueInputName: String!
createInputName: String!
createMutationName: String!
createManyMutationName: String!
relateToOneForCreateInputName: String!
relateToManyForCreateInputName: String!
itemQueryName: String!
listOrderName: String!
listQueryCountName: String!
listQueryName: String!
updateInputName: String!
updateMutationName: String!
updateManyInputName: String!
updateManyMutationName: String!
relateToOneForUpdateInputName: String!
relateToManyForUpdateInputName: String!
deleteMutationName: String!
deleteManyMutationName: String!
}

type KeystoneAdminUISort {
field: String!
direction: KeystoneAdminUISortDirection!
Expand Down
28 changes: 28 additions & 0 deletions examples/auth/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ type KeystoneAdminUIListMeta {
labelField: String!
fields: [KeystoneAdminUIFieldMeta!]!
groups: [KeystoneAdminUIFieldGroupMeta!]!
graphql: KeystoneAdminUIGraphQL!
initialSort: KeystoneAdminUISort
isHidden: Boolean!
isSingleton: Boolean!
Expand Down Expand Up @@ -207,6 +208,33 @@ type KeystoneAdminUIFieldGroupMeta {
fields: [KeystoneAdminUIFieldMeta!]!
}

type KeystoneAdminUIGraphQL {
names: KeystoneAdminUIGraphQLNames!
}

type KeystoneAdminUIGraphQLNames {
outputTypeName: String!
whereInputName: String!
whereUniqueInputName: String!
createInputName: String!
createMutationName: String!
createManyMutationName: String!
relateToOneForCreateInputName: String!
relateToManyForCreateInputName: String!
itemQueryName: String!
listOrderName: String!
listQueryCountName: String!
listQueryName: String!
updateInputName: String!
updateMutationName: String!
updateManyInputName: String!
updateManyMutationName: String!
relateToOneForUpdateInputName: String!
relateToManyForUpdateInputName: String!
deleteMutationName: String!
deleteManyMutationName: String!
}

type KeystoneAdminUISort {
field: String!
direction: KeystoneAdminUISortDirection!
Expand Down
28 changes: 28 additions & 0 deletions examples/cloudinary/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ type KeystoneAdminUIListMeta {
labelField: String!
fields: [KeystoneAdminUIFieldMeta!]!
groups: [KeystoneAdminUIFieldGroupMeta!]!
graphql: KeystoneAdminUIGraphQL!
initialSort: KeystoneAdminUISort
isHidden: Boolean!
isSingleton: Boolean!
Expand Down Expand Up @@ -257,6 +258,33 @@ type KeystoneAdminUIFieldGroupMeta {
fields: [KeystoneAdminUIFieldMeta!]!
}

type KeystoneAdminUIGraphQL {
names: KeystoneAdminUIGraphQLNames!
}

type KeystoneAdminUIGraphQLNames {
outputTypeName: String!
whereInputName: String!
whereUniqueInputName: String!
createInputName: String!
createMutationName: String!
createManyMutationName: String!
relateToOneForCreateInputName: String!
relateToManyForCreateInputName: String!
itemQueryName: String!
listOrderName: String!
listQueryCountName: String!
listQueryName: String!
updateInputName: String!
updateMutationName: String!
updateManyInputName: String!
updateManyMutationName: String!
relateToOneForUpdateInputName: String!
relateToManyForUpdateInputName: String!
deleteMutationName: String!
deleteManyMutationName: String!
}

type KeystoneAdminUISort {
field: String!
direction: KeystoneAdminUISortDirection!
Expand Down
28 changes: 28 additions & 0 deletions examples/custom-admin-ui-logo/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ type KeystoneAdminUIListMeta {
labelField: String!
fields: [KeystoneAdminUIFieldMeta!]!
groups: [KeystoneAdminUIFieldGroupMeta!]!
graphql: KeystoneAdminUIGraphQL!
initialSort: KeystoneAdminUISort
isHidden: Boolean!
isSingleton: Boolean!
Expand Down Expand Up @@ -326,6 +327,33 @@ type KeystoneAdminUIFieldGroupMeta {
fields: [KeystoneAdminUIFieldMeta!]!
}

type KeystoneAdminUIGraphQL {
names: KeystoneAdminUIGraphQLNames!
}

type KeystoneAdminUIGraphQLNames {
outputTypeName: String!
whereInputName: String!
whereUniqueInputName: String!
createInputName: String!
createMutationName: String!
createManyMutationName: String!
relateToOneForCreateInputName: String!
relateToManyForCreateInputName: String!
itemQueryName: String!
listOrderName: String!
listQueryCountName: String!
listQueryName: String!
updateInputName: String!
updateMutationName: String!
updateManyInputName: String!
updateManyMutationName: String!
relateToOneForUpdateInputName: String!
relateToManyForUpdateInputName: String!
deleteMutationName: String!
deleteManyMutationName: String!
}

type KeystoneAdminUISort {
field: String!
direction: KeystoneAdminUISortDirection!
Expand Down
28 changes: 28 additions & 0 deletions examples/custom-admin-ui-navigation/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ type KeystoneAdminUIListMeta {
labelField: String!
fields: [KeystoneAdminUIFieldMeta!]!
groups: [KeystoneAdminUIFieldGroupMeta!]!
graphql: KeystoneAdminUIGraphQL!
initialSort: KeystoneAdminUISort
isHidden: Boolean!
isSingleton: Boolean!
Expand Down Expand Up @@ -326,6 +327,33 @@ type KeystoneAdminUIFieldGroupMeta {
fields: [KeystoneAdminUIFieldMeta!]!
}

type KeystoneAdminUIGraphQL {
names: KeystoneAdminUIGraphQLNames!
}

type KeystoneAdminUIGraphQLNames {
outputTypeName: String!
whereInputName: String!
whereUniqueInputName: String!
createInputName: String!
createMutationName: String!
createManyMutationName: String!
relateToOneForCreateInputName: String!
relateToManyForCreateInputName: String!
itemQueryName: String!
listOrderName: String!
listQueryCountName: String!
listQueryName: String!
updateInputName: String!
updateMutationName: String!
updateManyInputName: String!
updateManyMutationName: String!
relateToOneForUpdateInputName: String!
relateToManyForUpdateInputName: String!
deleteMutationName: String!
deleteManyMutationName: String!
}

type KeystoneAdminUISort {
field: String!
direction: KeystoneAdminUISortDirection!
Expand Down
28 changes: 28 additions & 0 deletions examples/custom-admin-ui-pages/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ type KeystoneAdminUIListMeta {
labelField: String!
fields: [KeystoneAdminUIFieldMeta!]!
groups: [KeystoneAdminUIFieldGroupMeta!]!
graphql: KeystoneAdminUIGraphQL!
initialSort: KeystoneAdminUISort
isHidden: Boolean!
isSingleton: Boolean!
Expand Down Expand Up @@ -326,6 +327,33 @@ type KeystoneAdminUIFieldGroupMeta {
fields: [KeystoneAdminUIFieldMeta!]!
}

type KeystoneAdminUIGraphQL {
names: KeystoneAdminUIGraphQLNames!
}

type KeystoneAdminUIGraphQLNames {
outputTypeName: String!
whereInputName: String!
whereUniqueInputName: String!
createInputName: String!
createMutationName: String!
createManyMutationName: String!
relateToOneForCreateInputName: String!
relateToManyForCreateInputName: String!
itemQueryName: String!
listOrderName: String!
listQueryCountName: String!
listQueryName: String!
updateInputName: String!
updateMutationName: String!
updateManyInputName: String!
updateManyMutationName: String!
relateToOneForUpdateInputName: String!
relateToManyForUpdateInputName: String!
deleteMutationName: String!
deleteManyMutationName: String!
}

type KeystoneAdminUISort {
field: String!
direction: KeystoneAdminUISortDirection!
Expand Down
28 changes: 28 additions & 0 deletions examples/custom-field-view/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ type KeystoneAdminUIListMeta {
labelField: String!
fields: [KeystoneAdminUIFieldMeta!]!
groups: [KeystoneAdminUIFieldGroupMeta!]!
graphql: KeystoneAdminUIGraphQL!
initialSort: KeystoneAdminUISort
isHidden: Boolean!
isSingleton: Boolean!
Expand Down Expand Up @@ -329,6 +330,33 @@ type KeystoneAdminUIFieldGroupMeta {
fields: [KeystoneAdminUIFieldMeta!]!
}

type KeystoneAdminUIGraphQL {
names: KeystoneAdminUIGraphQLNames!
}

type KeystoneAdminUIGraphQLNames {
outputTypeName: String!
whereInputName: String!
whereUniqueInputName: String!
createInputName: String!
createMutationName: String!
createManyMutationName: String!
relateToOneForCreateInputName: String!
relateToManyForCreateInputName: String!
itemQueryName: String!
listOrderName: String!
listQueryCountName: String!
listQueryName: String!
updateInputName: String!
updateMutationName: String!
updateManyInputName: String!
updateManyMutationName: String!
relateToOneForUpdateInputName: String!
relateToManyForUpdateInputName: String!
deleteMutationName: String!
deleteManyMutationName: String!
}

type KeystoneAdminUISort {
field: String!
direction: KeystoneAdminUISortDirection!
Expand Down
28 changes: 28 additions & 0 deletions examples/custom-field/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ type KeystoneAdminUIListMeta {
labelField: String!
fields: [KeystoneAdminUIFieldMeta!]!
groups: [KeystoneAdminUIFieldGroupMeta!]!
graphql: KeystoneAdminUIGraphQL!
initialSort: KeystoneAdminUISort
isHidden: Boolean!
isSingleton: Boolean!
Expand Down Expand Up @@ -221,6 +222,33 @@ type KeystoneAdminUIFieldGroupMeta {
fields: [KeystoneAdminUIFieldMeta!]!
}

type KeystoneAdminUIGraphQL {
names: KeystoneAdminUIGraphQLNames!
}

type KeystoneAdminUIGraphQLNames {
outputTypeName: String!
whereInputName: String!
whereUniqueInputName: String!
createInputName: String!
createMutationName: String!
createManyMutationName: String!
relateToOneForCreateInputName: String!
relateToManyForCreateInputName: String!
itemQueryName: String!
listOrderName: String!
listQueryCountName: String!
listQueryName: String!
updateInputName: String!
updateMutationName: String!
updateManyInputName: String!
updateManyMutationName: String!
relateToOneForUpdateInputName: String!
relateToManyForUpdateInputName: String!
deleteMutationName: String!
deleteManyMutationName: String!
}

type KeystoneAdminUISort {
field: String!
direction: KeystoneAdminUISortDirection!
Expand Down
Loading

0 comments on commit 73a9132

Please sign in to comment.