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

Relation with property path channels in entity was not found #756

Closed
michaelbromley opened this issue Mar 11, 2021 · 0 comments
Closed

Relation with property path channels in entity was not found #756

michaelbromley opened this issue Mar 11, 2021 · 0 comments
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@michaelbromley
Copy link
Member

Describe the bug
Getting Relation with property path channels in entity was not found error when attempting to access OrderLine.featuredAsset via GraphQL APIs

To Reproduce
Steps to reproduce the behavior:

  1. Create a new channel
  2. Add a product to that channel
  3. In the storefront API execute the following query:
    mutation {
    addItemToOrder(productVariantId: 1, quantity: 1) {
    ... on Order {
      id
      code
      createdAt
      total
      totalQuantity
      lines {
        featuredAsset {
          id
        }
      }
    }
  4. See error:
    {
    "errors": [
    {
      "message": "Relation with property path channels in entity was not found.",
      "locations": [
        {
          "line": 5,
          "column": 9
        }
      ],
      "path": [
        "addItemToOrder",
        "lines",
        2,
        "featuredAsset"
      ]
    }
    

Expected behavior
Should not error

Environment (please complete the following information):

  • @vendure/core version: 1.0.0-beta.2
  • Nodejs version: 14.x
  • Database (mysql/postgres etc): any

Additional context
Note that repeating the failing mutation a second time works.

@michaelbromley michaelbromley added the type: bug 🐛 Something isn't working label Mar 11, 2021
@michaelbromley michaelbromley self-assigned this Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant