You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Unknown type "PostWhereUniqueInput". Did you mean "UserWhereUniqueInput", "PostRelateToOneInput", "UserWhereInput", "UserUpdateInput", or "UsersUpdateInput"?
While this is a fairly obscure access control configuration, it's something that can come up in systems which support multiple different schemas.
The solution involves checking for refList.access[schemaName] in the Relationship methods getGqlAuxTypes, gqlUpdateInputFields, and gqlCreateInputFields. Unfortunately the latter 2 of these are getter functions, so we can't pass in schemaName as required. Fixing the issue will require us to change these getter functions and pass in { schemaName }.
The text was updated successfully, but these errors were encountered:
When a list has a relationship to another list with
access: false
, keystone generates an invalid graphQL schema.While this is a fairly obscure access control configuration, it's something that can come up in systems which support multiple different schemas.
The solution involves checking for
refList.access[schemaName]
in theRelationship
methodsgetGqlAuxTypes
,gqlUpdateInputFields
, andgqlCreateInputFields
. Unfortunately the latter 2 of these aregetter
functions, so we can't pass inschemaName
as required. Fixing the issue will require us to change thesegetter
functions and pass in{ schemaName }
.The text was updated successfully, but these errors were encountered: