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
In current scenario (in Hasura v2), if suppose the developer adds a column to DB , adds it to their frontend query but fails to update Hasura column permissions, it will result into "fail hard" error. It wouldn't's show any data and provide error like
For example if you forgot to add address field in column permissions,
{
"errors": [
{
"extensions": {
"path": "$.selectionSet.user.selectionSet.address",
"code": "validation-failed"
},
"message": "field \"address\" not found in type: 'user'"
}
]
}
Describe the solution you'd like
The feature request is raised here to address that if there was opt-in configuration, where if user toggles it "on", then it would mean it would allow developer to make inform graphql-engine to return partial response , failing soft , where you return data for columns which exists in column permissions but return null as value for column which doesn't exist in column permissions.
For example, the response would look like (if you forgot to add address field in column permissions )
Is your proposal related to a problem?
In current scenario (in Hasura v2), if suppose the developer adds a column to DB , adds it to their frontend query but fails to update Hasura column permissions, it will result into "fail hard" error. It wouldn't's show any data and provide error like
For example if you forgot to add
address
field in column permissions,Describe the solution you'd like
The feature request is raised here to address that if there was opt-in configuration, where if user toggles it "on", then it would mean it would allow developer to make inform graphql-engine to return partial response , failing soft , where you return data for columns which exists in column permissions but return
null
as value for column which doesn't exist in column permissions.For example, the response would look like (if you forgot to add
address
field in column permissions )The text was updated successfully, but these errors were encountered: