How can I change primary key of RethinkDB after my rethinkdb feathers service is created?
I tried below code but it won't affect.
app.use('/messages', service({
id: 'user_id',
Model: db,
name: 'messages'
}));
Is there anything I missed?
How can I change primary key of RethinkDB after my rethinkdb feathers service is created?
I tried below code but it won't affect.
app.use('/messages', service({
id: 'user_id',
Model: db,
name: 'messages'
}));
Is there anything I missed?
Copyright © 2021 Jogjafile Inc.
When using a different primary key the RethinkDB database needs to be initialized with the same
primaryKeyoption. You can either do that manually or useservice.initas documented here: