Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fragment queries broken: 'could not initialize proxy - no Session' #241

Open
molexx opened this issue Feb 3, 2020 · 2 comments
Open

Fragment queries broken: 'could not initialize proxy - no Session' #241

molexx opened this issue Feb 3, 2020 · 2 comments
Labels

Comments

@molexx
Copy link
Contributor

molexx commented Feb 3, 2020

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"
}
@igdianov
Copy link
Collaborator

igdianov commented Feb 3, 2020

@molexx Fragment queries are not supported, yet...

@molexx
Copy link
Contributor Author

molexx commented Feb 5, 2020

They worked ok up to 09dd88c but were broken in 3db0e51.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants