I missed one essential thing in the whole implementation, and that is setting the exact values according to the input. In some cases, this makes it impossible to use graphql-faker as a mock only with @fake and @examples directives. So I finished the @value directive, which might help someone else.
I missed one essential thing in the whole implementation, and that is setting the exact values according to the input. In some cases, this makes it impossible to use graphql-faker as a mock only with @fake and @examples directives. So I finished the @value directive, which might help someone else.
how does it work?
for enum value:
for Boolean or string values
for other types: