data-hub icon indicating copy to clipboard operation
data-hub copied to clipboard

Graphql should provide inter dependent data

Open rajesh17692 opened this issue 5 years ago • 8 comments

Hello Team,

There should be also a way so that we can fetch data from Data Object which belongs to Required By dependencies.

Can Team check on this possibility?

rajesh17692 avatar Aug 03 '20 03:08 rajesh17692

@rajesh17692 , could you provide a PR please ?

weisswurstkanone avatar Aug 03 '20 10:08 weisswurstkanone

For details please look below scenario

  1. create a User class

  2. create some other class like Store

  3. Map user relation in store as one to Many

  4. Now when I am trying to call query getStoreListing of Graphql I am getting all stores and able to get users of the store as well as relation present in Store class.

  5. When trying to go call getUserListing query of Graphql not able to get a store to which stores we have mapped stores but when checking in dependencies in user object is shows in the required by so there should be way so that we can get details which exist in required by section of dependencies.

rajesh17692 avatar Aug 04 '20 03:08 rajesh17692

@rajesh17692 , requirements are clear, do you want to volunteer concerning the implementation as this probably not top prio :wink:

weisswurstkanone avatar Aug 04 '20 07:08 weisswurstkanone

@rajesh17692 , do you think it is sufficient for now to simply return a list of element descriptors (type + id)? This should be fairly easy to implement.

weisswurstkanone avatar Aug 18 '20 13:08 weisswurstkanone

@weisswurstkanone We should receive all possible columns which are available for type so that with single query we can get all parent and child results for the data.

rajesh17692 avatar Aug 18 '20 20:08 rajesh17692

@rajesh17692 can you depict a use case? Since the dependencies are rather meant for an overview ...

weisswurstkanone avatar Aug 19 '20 05:08 weisswurstkanone

@rajesh17692 ping 🏓

weisswurstkanone avatar Sep 17 '20 09:09 weisswurstkanone

Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.

github-actions[bot] avatar Jan 21 '24 07:01 github-actions[bot]