FilterableField not recognizing name in options
fabianboerner opened this issue · 1 comments
fabianboerner commented
I have the follwing:
@FilterableField({name: 'jobReferenceNumber'})
'Job Reference Number'?: string;
And getting the following error:
/app/node_modules/graphql/type/assertName.js:31
throw new _GraphQLError.GraphQLError(
^
GraphQLError: Names must only contain [_a-zA-Z0-9] but "Job Reference Number" does not.
To Reproduce
Steps to reproduce the behavior:
- create graphql module
- use spaces in name
Expected behavior
Name is used as actual name, as working for @field decorator
TriPSs commented
Can you test with @ptc-org/nestjs-query-graphql@4.2.1-alpha.1