Skip to content

Querying fields on link table of Many-To-Many relationships (SQL, GraphQL) #2062

Discussion options

You must be logged in to vote

Hi @jacksorjacksor,

In order to query the fields, present in the joining table, the following setup has to be configured.

  1. The joining table should be configured as an entity in the config file.
    Note: Typically, the joining table need not be exposed as an entity in the config file when creating a many:many relationship. Just specifying the linking.object field would suffice. But, creating the relationship this way, will not enable querying the fields in the joining table.
  2. The following relationships need to be created.

a) Employee entity: Relationship with EmployeeRole with cardinality as many
b) EmployeeRole entity: Relationship with Employee with cardinality as one
c) Role entity: Rela…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jacksorjacksor
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants