example how to set json-schemas and mocks for graphql api
JavaScript
Example of using cypress schema-tools and graphql mocking
Test-app has dynamic url for API, for now it is simple/v1/cixmkt2ul01q00122mksg82pn but last part will be changed, so all fixtures should be updated with new ID.
In order to avoid setting all properties as required in JSON shema - normalizeRequired script will set it all automatically, now you should explicitly set required: false to property is not required. Example: