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

feature: auto-generated update and merge on relationships with properties #193

Open
maiieul opened this issue Sep 22, 2019 · 3 comments
Open

Comments

@maiieul
Copy link

maiieul commented Sep 22, 2019

Currently, when creating a relationship with properties using the syntax below, It is only possible to "add" the relationship or to "remove" it through auto-generated mutations. I think it would be nice to be able to MERGE and UPDATE these kinds of relationships with properties through auto-generated queries.

type Rating @relation (name: "RATED") {
  from: User
  to: Category
  value: Int!
}
@jexp
Copy link
Contributor

jexp commented Sep 22, 2019

Can you check the /graphql/experimental endpoint?

That should support it. It’s the new library we’re writing and using for the translation on the jvm

@maiieul
Copy link
Author

maiieul commented Sep 22, 2019

I can try but I don't know how to do that... I am using the neo4j-graphql-js integration. Is it accessible with it?

Or can you tell me or provide a link on how to do that?

@michaeldgraham
Copy link

Hey there! We should have a refactor of the schema augmentation process for neo4j-graphql-js in soon. It should make the implementation of generated update and merge relationship mutations smoother. The plan is to align with those generated by the neo4j-graphql-java library. I believe there's an issue related to this over in the neo4j-graphql-js repo, if not I'll make one and ping you there when we start to get moving on this :)

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

3 participants