I can't understand the error, it can't return obj...
# orm-help
h
I can't understand the error, it can't return object in resolver
l
What does the query definition look in the schema (for feed). What I see is that you are not returning an array (Iterable) in the first example, but is when you return straight from
ctx.db.query.themes
h
query{ feed{ count lists{ id } } }
hi,lancej. This is the query
l
I mean what is in schema.graphql
not from the client
h
type Feed { lists: [Theme!]! count: Int! } type Query { feed: [Feed!]! }
Sorry, my English is not very good. I come from China
l
So [Feed!]! is an array of feeds, you want it to be
Copy code
type Query {
  feed: Feed
}
h
I want to return a custom object in resolver
What should I do
l
That is ok, the schema needs to be changed to match the resolver
to
feed: Feed
h
I see. Thank you very much.
l
no problem