dyne / zenpub

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

createOffer ignores due field #66

Open vcuculo opened 3 years ago

vcuculo commented 3 years ago

The following mutation


mutation {
  createOffer(intent: {
      action: "transfer",
      name: "Donazione",
      receiver:"01F3MHQ0KWJC7M19B1E8BXVY46",
      resourceInventoriedAs:"01FFPTBZ2HGX9KQT7KRRQBKA5J"
      availableQuantity: {hasUnit: "01FFJEBJ4S4E4ZDWZNEWYFZYD7", hasNumericalValue: 10}
      due: "2021-09-20T14:10:20+01:00"
  }
  ) {
    intent {
      id
      name
      due
    }
  }
}

results in

{
  "data": {
    "createOffer": {
      "intent": {
        "due": null,
        "id": "01FFPTZ4Q51CE7N77619DQGCYH",
        "name": "Donazione"
      }
    }
  }
}
vcuculo commented 3 years ago

This issue extends also to properties hasBeginning, hasEnd and hasPointInTime