tarantool / graphqlide

Tarantool Cartridge WebUI GraphiQL IDE module
6 stars 1 forks source link

Operations by PK cause error #63

Open dkasimovskiy opened 1 year ago

dkasimovskiy commented 1 year ago

Steps to reproduce:

  1. Create space with number of fields
  2. Fill data into space
  3. Call get / update on this space
  4. See error like on screenshot

image

Expected behaviour: See data from space in the UI

filonenko-mikhail commented 4 months ago

The error is from crud module. It seems that primary key does not contain fields from sharding Remake sharding index or specify bucket_id.

savinov commented 4 months ago

crud uses _ddl_sharding_key and _ddl_sharding_func to calculate and set bucket_id from the sharding fields values. If I remember correctly the problem is that graphqlide don't call crud untill you explicitly specify bucket_id, even if all sharding fileds values are specified.