Skip to content

How to create mutation CreateOne with custom _id #141

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

Closed
asergiychuk opened this issue Dec 3, 2018 · 3 comments
Closed

How to create mutation CreateOne with custom _id #141

asergiychuk opened this issue Dec 3, 2018 · 3 comments

Comments

@asergiychuk
Copy link

Hi!
I need to create mutation CreateOne with custom _id, but CreateOne mutation remove _id from Input type.

How do it with right and easy way?

@nodkz
Copy link
Member

nodkz commented Dec 4, 2018

This is an uncommon task.

So just copy https://github.com/graphql-compose/graphql-compose-mongoose/blob/master/src/resolvers/createOne.js resolver and create a new one with another name in your code.

@nodkz nodkz added this to the 9.0.0 milestone Sep 8, 2020
nodkz added a commit that referenced this issue Sep 11, 2020
…D. Now it can be of any type (Int, String, Object).

closes #141
nodkz added a commit that referenced this issue Sep 12, 2020
…D. Now it can be of any type (Int, String, Object).

closes #141
@github-actions
Copy link

🎉 This issue has been resolved in version 9.0.0-alpha.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This issue has been resolved in version 9.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

No branches or pull requests

2 participants