Area: API
Sub-Area: GraphQL API
Issue
Users encountered a 500 Internal Server Error when attempting to create schema assertions through the GraphQL API. The error occurred due to a parameter that was marked as optional in the API but was actually required by the backend implementation, causing the request to fail unexpectedly.
Common Error Messages:
- HTTP 500 Internal Server Error when executing GraphQL mutation for schema assertion creation
Solution
This issue has been resolved by making the previously pseudo-optional parameter truly optional in the backend. Users can now create schema assertions without providing all parameters that were incorrectly marked as required.
To create a schema assertion using the GraphQL API:
mutation createSchemaAssertion {
upsertDatasetFieldAssertions(
input: {
urn: "urn:li:dataset:(...)",
assertions: [
{
# Include only required fields
# Previously optional fields are now genuinely optional
}
]
}
)
}
Additional Notes
Fixed in version v0.3.13. Users on earlier versions should upgrade to v0.3.13 or later to benefit from this fix.
Related Documentation
Tags:
graphql, api, assertions, schema-assertion, 500-error, bug-fix, v0.3.13