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
I have a question regarding the integration between Hasura and Prismic.
Since Prismic only accepts graphql queries via a GET request, we have been having some problems integrating Prismic via "Remote Schemas".
So another solution we tried was to use "Actions" instead. The problem that we encountered trying this was this error: "Hasura does not allow a field of an object type to be another object type, i.e. the fields of an object type can only be scalars and enums."
We are unsure how to handle these types in Hasura actions since Prismic uses objects in the typing of our resources.
How should we redefine these types in Hasura in order to make them work with Prismic?
Here is an example of the structure we are talking about in the types:
type ArticleOutput {
body: Body!
}
type Body {
title: String!
subtitle:String!
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have a question regarding the integration between Hasura and Prismic.
Since Prismic only accepts graphql queries via a GET request, we have been having some problems integrating Prismic via "Remote Schemas".
So another solution we tried was to use "Actions" instead. The problem that we encountered trying this was this error: "Hasura does not allow a field of an object type to be another object type, i.e. the fields of an object type can only be scalars and enums."
We are unsure how to handle these types in Hasura actions since Prismic uses objects in the typing of our resources.
How should we redefine these types in Hasura in order to make them work with Prismic?
Here is an example of the structure we are talking about in the types:
type ArticleOutput {
body: Body!
}
type Body {
title: String!
subtitle:String!
}
Beta Was this translation helpful? Give feedback.
All reactions