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

Forcing upcase on model name in buildQuery overwites value set by adapter #152

Open
freakent opened this issue Jul 2, 2020 · 0 comments

Comments

@freakent
Copy link

freakent commented Jul 2, 2020

In source file plugin-graphql/blob/master/src/graphql/query-builder.ts, function name buildQuery(...). I don't think this uppcaseFirstLetter(name) should be used here. It appears to be changing a value set by a custom adapter.

// build query const query: string = \${type} ${upcaseFirstLetter(name)}${this.buildArguments(
model,
args,
true,
filter,
true,
field
)} {\n` +
` ${this.buildField(model, multiple, args, [], name, filter, true)}\n` +
};
`

Impacts using a custom adapter to set the name of a mutation with getNameforPersit(model).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant