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

feat(enhancement): Upgrade to queryField and mutationField: #176

Merged
merged 4 commits into from
Jul 2, 2021

Conversation

mthomps4
Copy link
Contributor

@mthomps4 mthomps4 commented Jun 30, 2021

Changes

feat(enhancement): Upgrade to queryField and mutationField:

  • Updates user.ts.ejs example

  • Updates graphql.ejs template

  • Generating a new app works

Fixes #175

- Updates user.ts.ejs example
- Updates graphql.ejs template
@mthomps4 mthomps4 requested review from cball and kgajera June 30, 2021 16:50
@mthomps4 mthomps4 self-assigned this Jun 30, 2021
@@ -3,7 +3,7 @@ to: graphql/modules/<%= name %>.ts
---
<% camelized = h.inflection.camelize(name) -%>
<% plural = h.inflection.pluralize(camelized) -%>
import { objectType, extendType, inputObjectType, arg, nonNull /*, enumType*/ } from 'nexus';
import { objectType, extendType, inputObjectType, queryField, mutationField, arg, list, nonNull /*, enumType*/ } from 'nexus';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this in a new bison app, and this line has lint errors (too long and unused import). This is also an issue in the user module file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

927e666 🤦🏼

@mthomps4 mthomps4 merged commit 7a0da6b into canary Jul 2, 2021
@mthomps4 mthomps4 deleted the GH175-nexus-refactor-queryField branch July 2, 2021 20:23
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

Successfully merging this pull request may close these issues.

Enhancement: Move to queryField and mutationField for generation and examples
2 participants