Anyone have example of an upsert using python client and js object format?

Hi @billybobthorton,

Can you share your GraphQL schema ? (specifically the type definition of node, 0x1fbd2 )
Is the predicate prize a field of some object in GraphQL schema ?

The prize predicate of the node won’t get affected if it is not part of the schema and the backend is being run in GraphQL mode.

By default, Slash GraphQL runs in GraphQL mode which does not allow adding predicate values which are not part of schema. You will have to use flexible mode to make changes to predicates using DQL.

You, may learn more about different Backend of modes of Slash over here, https://dgraph.io/docs/slash-graphql/admin/backend-modes/#flexible-mode/ .

Related Discuss Post: Some predicates are not being created on Slash .

Other reason for prize predicate not getting affected could be related to mapping of GraphQL and DQL predicates.

Consider this type in GraphQL schema,

type User {
    prize: String!
    name: String!
}

When this schema is applied, Dgraph internally creates 2 predicates with the name,
User.prize and User.name. The prize field is mapped to User.prize predicate in Dgraph.
In case, after inserting GraphQL schema, you want to perform some operations using DQL, you will have to use their Dgraph mappings, User.prize and User.name for these operations.

Do let us know if this solves your issue or if you face any other problems.