You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"errors": [
{
"message": "Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but \"comment-author-type\" does not.",
"stack": [
"GraphQLError: Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but \"comment-author-type\" does not.",
" at isValidNameError (/Users/clint/Projects/chirp/node_modules/graphql/utilities/assertValidName.js:42:12)",
" at validateName (/Users/clint/Projects/chirp/node_modules/graphql/type/validate.js:199:53)",
" at validateInputFields (/Users/clint/Projects/chirp/node_modules/graphql/type/validate.js:439:5)",
" at validateTypes (/Users/clint/Projects/chirp/node_modules/graphql/type/validate.js:240:7)",
" at validateSchema (/Users/clint/Projects/chirp/node_modules/graphql/type/validate.js:54:3)",
" at /Users/clint/Projects/chirp/node_modules/express-graphql/index.js:97:66",
" at processTicksAndRejections (internal/process/task_queues.js:93:5)"
]
},
The text was updated successfully, but these errors were encountered:
@Zhouchuanwen Nope, this package cannot translate numeric field names to graphql field names. And I don't know any workaround for that. Except you rename fields according to graphql field name convention. Or write your own resolver from scratch without graphql-compose-elasticsearch.
If the ES mapping property name contains a hyphen, the service cannot start. Is there a workaround?
The text was updated successfully, but these errors were encountered: