dyne / zenpub

Reflow federated economic network
GNU Affero General Public License v3.0
13 stars 3 forks source link

createResourceSpecification seems to ignore resourceClassifiedAs field #64

Open vcuculo opened 3 years ago

vcuculo commented 3 years ago

The following mutation

mutation{
  createResourceSpecification(
    resourceSpecification: {
      name:"Fruit and vegatables",
        resourceClassifiedAs: "https://www.wikidata.org/wiki/Q21925565",
    }){
    resourceSpecification{
      id,
      name,
      resourceClassifiedAs
    }
  }
}

results in

{
  "data": {
    "createResourceSpecification": {
      "resourceSpecification": {
        "id": "01FFJCRM7ASFXN8QNA3QKX920D",
        "name": "Fruit and vegatables",
        "resourceClassifiedAs": null
      }
    }
  }
}

should the URL be formatted differently or is ignored in the creation process? Thanks!

denizenging commented 3 years ago

Hi @vcuculo,

Thanks for reporting.

The mutation you use here is incorrect: you should use a list of URIs, not just the URI itself. Nonetheless, it doesn't work with that either, but I made a fix for that; it will be available here soon.

In any case, this has been fixed in ReflowOS.

Cheers, srfsh

denizenging commented 3 years ago

... but I made a fix for that; it will be available here soon.

Sorry for my miscalculation; the change needs some more work. I'll let you know as soon as possible when it is available.

vcuculo commented 3 years ago

Thank you for the update @srfsh . Personally speaking, we moved to the Bonfire backend and therefore this not represent a priority anymore.