-
I am starting a project and I still don't have an api serving the schema, so, I would like to create a schema, give it to the mesh and mock the response. How can this be achieved? e.g. .meshrc.yamlsources:
- name: Wiki
handler:
graphql:
endpoint: ./schema.graphql
transforms:
- mock:
if: true
mocks:
- apply: Certificate.id
faker: '{{datatype.uuid}}'
- apply: Certificate.name
faker: '{{name.firstName}}'
- apply: Query.certificates
length: 5
serve:
port: 5000 schema.graphqltype Query {
certificates: [Certificate!]!
}
type Certificate {
id: ID!
name: String!
} Currently, when I run this I get the following error:
|
Beta Was this translation helpful? Give feedback.
Answered by
nemonemi
May 19, 2021
Replies: 1 comment
-
It turns out, exactly like that. There was a bugfix that made this functioning correctly. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nemonemi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It turns out, exactly like that. There was a bugfix that made this functioning correctly.
https://github.com/Urigo/graphql-mesh/pull/2175/files