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

Tags are ignored in EconomicResource creation #32

Open
vcuculo opened this issue Feb 15, 2022 · 2 comments
Open

Tags are ignored in EconomicResource creation #32

vcuculo opened this issue Feb 15, 2022 · 2 comments
Assignees

Comments

@vcuculo
Copy link

vcuculo commented Feb 15, 2022

The following query

mutation {
    createEconomicEvent(
      event: {
        action: "produce",
        provider: "01FVAF3EZCV3AQCN9NH3SFPB3X"
        receiver: "01FVAF3EZCV3AQCN9NH3SFPB3X",
        resourceQuantity: {hasUnit: "01FVAFFCQ6YG9VPZHE8G14GSD1", hasNumericalValue: 10},
        hasPointInTime: "1970-01-01T00:00:00.000Z"
      },
      newInventoriedResource: {
        name: "Test",
        tags: ["01FVAFGMBTFE83P73BVKYMRTXP"]
      }){
      economicEvent {
        id
        resourceInventoriedAs {
          id
          name
          tags {
            __typename
            ... on Tag {
              id
              name
            }
            ... on Category {
              id
              name
            }
          }
        }
      }
  	}
}

results in

{
  "data": {
    "createEconomicEvent": {
      "economicEvent": {
        "id": "01FVZTJYWKZX9BJ5ZX7JFCF074",
        "resourceInventoriedAs": {
          "id": "01FVZTJYVH8WAKJF80FD6JVS3M",
          "name": "Test",
          "tags": []
        }
      }
    }
  }
}

but I expect to find tags a non-empty field. This used to work in past, but something changed with new updates.

@mayel
Copy link
Contributor

mayel commented Feb 15, 2022

Thanks for the report! I will look into this one.

@mayel mayel self-assigned this Feb 15, 2022
@mayel
Copy link
Contributor

mayel commented Feb 16, 2022

I've pushed a fix. Please let me know if it works for you (after @srfsh has updated the release)

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

No branches or pull requests

2 participants