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
fix(structure): provide better error handling if orderings contain invalid field (#5709)
* fix(structure): provide better error handling if orderings contain invalid field
* chore: fixed lint issue
* chore: fixed lint issue again
* fix(structure): provide better error handling if orderings contain invalid field
* fix(structure): provide better error handling if orderings contain invalid field
* fix(structure): add comment explaining why we are calling this method
'The current ordering config targeted the nonexistent field "%s" on schema type "%s". It should be one of %o',
19
-
head,
20
-
schemaType.name,
21
-
schemaType.fields.map((field)=>field.name),
22
-
)
15
+
if(!IMPLICIT_SCHEMA_TYPE_FIELDS.includes(head)){
16
+
consterrorMessage=`The current ordering config targeted the nonexistent field "${head}" on schema type "${schemaType.name}". It should be one of ${schemaType.fields.map((field)=>field.name).join(', ')}`
0 commit comments