You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I try to subscribe to an object I can still only refer to it by the primary key in the table, not uuid.
I would like to use UUID instead of private key in my subscriptions, as UUID are no sequences, and impossible to guess.
Also the rest of the application works with UUID as the unique identifier.
I tried the 'pkField' setting in the configuration block of the connection, but this didn't seem to make any difference.
I'm subscribing with the following code, this fails:
You will need to make some server side changes as well, the deafult subscribtion also assumes PK as the key.
Feel free to re-open this issue so i can track this. It should not be a massive change i thinking you will be able to define on the Consume the field you want to use. Or do you need this to be dynmaic so that differnt clients subscribe based on differnt fields?
tl;dr is it possible to subscribe to objects with another field than the private key?
I'm trying to connect an existing database model to the asynchronous websockets.
I tried the pkField setting in connect, like this:
But when I try to subscribe to an object I can still only refer to it by the primary key in the table, not uuid.
I would like to use UUID instead of private key in my subscriptions, as UUID are no sequences, and impossible to guess.
Also the rest of the application works with UUID as the unique identifier.
I tried the 'pkField' setting in the configuration block of the connection, but this didn't seem to make any difference.
I'm subscribing with the following code, this fails:
What does work is the pk, even though pkField is set to 'uuid':
The text was updated successfully, but these errors were encountered: