Fragments worked fine a little while ago in 0.3.x but in 0.4 seem to have a broken transaction scope.
On master 510c5bf , this query works fine:
query {
Humans {
pages
total
select {
id
name
friends {
name
id
}
}
}
}
but the same query using a Fragment no longer does:
fragment HumanFragment on Human {
id
name
friends {
name
id
}
}
query {
mydata:Humans {
pages
total
select {
...HumanFragment
}
}
}
{
"timestamp": "2020-02-03T11:47:49.915+0000",
"status": 500,
"error": "Internal Server Error",
"message": "failed to lazily initialize a collection of role: com.introproventures.graphql.jpa.query.schema.model.starwars.Character.friends, could not initialize proxy - no Session",
"path": "/graphql"
}
Fragments worked fine a little while ago in 0.3.x but in 0.4 seem to have a broken transaction scope.
On master 510c5bf , this query works fine:
but the same query using a Fragment no longer does: