RisingStack / graffiti-mongoose

⚠️ DEVELOPMENT DISCONTINUED - Mongoose (MongoDB) adapter for graffiti (Node.js GraphQL ORM)
https://risingstack-graffiti.signup.team/
MIT License
382 stars 52 forks source link

How to mutate nested Schema? #195

Closed danielmahon closed 7 years ago

danielmahon commented 7 years ago

Overview of the Issue

I must be missing something but how do you create/update a nested schema? For example, I am unable to create the street1 attribute under the location path. No errors are thrown.

Reproduce the Error

cursor_and_graphiql_and_text_field_-_material-ui

Node version: 6.3.1 Graffiti-Mongoose version: 5.3.0

JohnProg commented 7 years ago

Can you show us the error that you get when you hover the line red error? because I can do it.

danielmahon commented 7 years ago

@JohnProg I will close this, I believe this was an issue on my end with location being a reference to another document and not actually nested itself.

JohnProg commented 7 years ago

Nice.