Hi everyone,
I want to store data as per the scheme mentioned in storesanddepartments.graphqls example:
schema {
query: Query
}
type Query {
shops: [Shop]!
}
type Shop {
id: ID!
name: String!
departments: [Department]!
}
type Department {
id: ID!
name: String!
products: [Product]!
}
type Product {
id: ID!
name: String!b
}
I am using graphql 4.0 version. My problem is if I have more then one Product values or Department values then I am able to store list in the "shops" field of Query type but RuntimeWiring allows only the last value of Department/Product. How can I associate datafetcher with the fields of these object types?
The SchemaGenerator is not giving any clue to solve this issue. Somebody please help me as soon as possible.
Regards
Aruna