Skip to content

Multi-directional relationships will cause the runtime to fail when building the schema #906

@sajeetharan

Description

@sajeetharan

Currently the engine throws an error with the getting started sample

Here is the query to get list of books and authors:


{
  books(filter: { title: { eq: "Foundation" } })
  {
    items {
      id
      title
      authors {
          first_name
          last_name
        }
    }
  }
}

and the schema as follows,

type Author @model {
    id : ID,
    first_name : String,
    middle_name: String,
    last_name: String,
    Books: [Book]
}

type Book @model {
    id : ID,
    title : String,
    Authors: [Author]
}

it throws an error as The runtime refused to evaluate expression at this time

Metadata

Metadata

Labels

cosmosgraphqlmssql pgsql mysqlan issue that applies to all relational databases, same as labeling with `mssql` `mysql` and `pgsql`needs discussion

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions