You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following query (access through one-to-many relationship, different content type):
query {
strapi {
articleses {
children {
image { name }
}
}
}
}
Doesn't work, image is null
Oddly, the following query (access through one-to-one then one-to-many relationship, same then different content type):
query {
strapi {
articles {
parent {
children {
image { name }
}
}
}
}
}
Works, image is defined
Steps to reproduce the behavior
Bootstrap a fresh project with latest strapi version
Create content types and fields as I described before
Install the GraphQL plugin
Paste the queries I provided
Expected behavior
The relation should not be broken while accessed from a one-to-many relationship, from a different content type (I believe this is what is happening).
System
Node.js version: 12.14.1
NPM version: 6.13.4
Strapi version: Strapi v3.0.0-beta.19.3
Database: postgresql
Operating system: macos
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hello,
Describe the bug
My initial goal is to create several groups of articles, with several articles in each of them. Thefore, I have 2 content types :
articles
(plural)article
(singular)articles
has two fields:highlighted_child
: one-to-one relation fromarticles
toarticle
children
: one-to-many relation fromarticles
toarticle
article
has three fields:image
: component with several fields (an image name, a media, ...)parent
: one-to-one relation fromarticle
toarticles
similar_articles
: one-to-many relation fromarticle
toarticle
The following query (direct access):
Works, image is defined
The following query (access through one-to-many relationship, same content type):
Works, image is defined
The following query (access through one-to-many relationship, different content type):
Doesn't work, image is
null
Oddly, the following query (access through one-to-one then one-to-many relationship, same then different content type):
Works, image is defined
Steps to reproduce the behavior
Expected behavior
The relation should not be broken while accessed from a one-to-many relationship, from a different content type (I believe this is what is happening).
System
Thanks in advance!
The text was updated successfully, but these errors were encountered: