type User {
user_name: String
Age: Float
Drinking: Boolean
Nationality: String
sex: String
Smoking: Boolean
Weight: Float
sufferingFromDisease: disease @relationship(type: "suffering_from", direction: OUT)
haveInFamilyHistory: history @relationship(type: "have_in_family", direction: OUT)
activityOnTodayDate: today_date @relationship(type: "activity_on", direction: OUT)
}
type disease {
disease_name: String
Medication: String
Time_period: Float
userSufferingFrom: User @relationship(type: "suffering_from", direction: IN)
}
I am using this type definitions in graphql to create the graph. I have created the user node and disease node without relations. Now i want to create the relations without editing the nodes like merge in the cypher. can some one help
mutation{
createUsers(input:{
sufferingFromDisease
})
{
users{
sufferingFromDisease
}
}
}
I was trying this above mutation to create relations but no luck