fix: update schemataByApiSchemaApiIdAndSchemaId to schemasByApiSchemaApiIdAndSchemaId for graphile-simple-inflector 0.4.4 compatibility #576
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Updates the GraphQL query field name from
schemataByApiSchemaApiIdAndSchemaIdtoschemasByApiSchemaApiIdAndSchemaIdin the server middleware to match the new field name generated by graphile-simple-inflector 0.4.4.This change aligns with the corresponding updates made in constructive-db (see commit cd69cd68b) where the underlying
schematatable was renamed toschemas.Review & Testing Checklist for Human
gql.tswere updated - the diff shows only one change but there are two queries (ApiQueryat line 23 andApiByNameQueryat line 74) that use this field. The second occurrence may have been missed.schemasByApiSchemaApiIdAndSchemaIdas the field name (depends on graphile-simple-inflector version)Notes
Link to Devin run: https://app.devin.ai/sessions/d52a445024ee496a94d376a474bf26f1
Requested by: Dan Lynch (@pyramation)