Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FilterableField not recognizing name in options #169

Closed
fabianboerner opened this issue Aug 28, 2023 · 1 comment · Fixed by #190
Closed

FilterableField not recognizing name in options #169

fabianboerner opened this issue Aug 28, 2023 · 1 comment · Fixed by #190
Labels
bug Something isn't working

Comments

@fabianboerner
Copy link

fabianboerner commented Aug 28, 2023

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:

  1. create graphql module
  2. use spaces in name

Expected behavior
Name is used as actual name, as working for @field decorator

@fabianboerner fabianboerner added the bug Something isn't working label Aug 28, 2023
@fabianboerner fabianboerner changed the title FilterableField not recoginziing name in options FilterableField not recognizing name in options Aug 28, 2023
@TriPSs
Copy link
Owner

TriPSs commented Oct 12, 2023

Can you test with @ptc-org/[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants