I added a test for facet mutation in #146 and I am able to mutate with facets.
I would argue that with the current mess that dgraph facets are in right now, there are different ways of handling facets and it seems to me that the test you added doesn’t cover all the different cases. However, the difference between the facets in that test and my situation is that I am adding facets to existing nodes, and the test is simply writing a new subgraph containing facets on some edges. I also think there should be a test for dealing with facets for schema type [uid].
I’d recommend using the client or ratel to retrieve the node instead of the graphical interface.
Isn’t ratel and the GUI the same?
I’d suggest testing your code with a hardcoded mutation.
I’m not sure this point is valid, because I print the encoded nquad to stdout and successfully run it in ratel.
EDIT: misread the test and see that it does indeed mutate.
Sorry, by not using the graphical interface I meant not using the node explorer and instead writing a query to see what you get back in the JSON response. If the mutations are present in the JSON response, then the issue would be in the node explorer.
I’ll see what additional cases I can. However, I doubt the issue is in pydgraph itself as the client is just sending the mutations and does not modify the input.
EDIT: I see the test already checks that facets to uid predicates work correctly.