Closed jlak0 closed 11 months ago
I'm using heavily expand with both direct and indirect/back relations, so I don't think it is a PocketBase or JS SDK issue.
Double check that:
fetch
implementation that has cache enabled by default)To rule out JS SDK issue, you can also try sending the request directly with the equivalent web API.
If the above doesn't help, feel free to paste your collections configuration as json (Admin UI > Settings > Export collections) and I'll have a more detailed look.
I'm using heavily expand with both direct and indirect/back relations, so I don't think it is a PocketBase or JS SDK issue.
Double check that:
- there is no cache involved (if you use Next.js note that they have custom global
fetch
implementation that has cache enabled by default)- make sure that your API request satisfy the View API rule of the related collection
To rule out JS SDK issue, you can also try sending the request directly with the equivalent web API.
If the above doesn't help, feel free to paste your collections configuration as json (Admin UI > Settings > Export collections) and I'll have a more detailed look.
I'm using heavily expand with both direct and indirect/back relations, so I don't think it is a PocketBase or JS SDK issue.
Double check that:
- there is no cache involved (if you use Next.js note that they have custom global
fetch
implementation that has cache enabled by default)- make sure that your API request satisfy the View API rule of the related collection
To rule out JS SDK issue, you can also try sending the request directly with the equivalent web API.
If the above doesn't help, feel free to paste your collections configuration as json (Admin UI > Settings > Export collections) and I'll have a more detailed look.
Thank you a lot for your hint and sorry for incorrect issue, it was Next.js cache problem,I had encountered once before in an another situation, and was discuted here https://github.com/pocketbase/pocketbase/discussions/2695 ugh, how could I forget this
I have tested same code with API or "getList" method and it works perfectly However, when using the 'getOne' method, the code for expand back-relation seems to be ignored