The default CUD operation in srawberry_django identifies the model to be mutated by the model's id (the database's id column, which is the Primary Key). How can I change this behavior to point to a column's/model's UUID without overriding strawberry_django.mutations.update method?
In simple terms, how to do a search on a field that is not id/PK in strawberry-graphql-djang without mending update method?
At the moment of strawberry-graphql-django
v0.16.0it's not possible to do so! The reason is the implementation of get_pk method.As you can see, this method assumes that the model identifier is
idorpkONLY!