parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

insert items into array using graphql

Open faysal515 opened this issue 4 years ago • 3 comments
trafficstars

New Feature / Enhancement Checklist

Current Limitation

Cannot insert items in the array using graphql. I've also asked a question on SO before. someone suggested me to post an issue

https://stackoverflow.com/questions/66552544/insert-items-into-array-using-graphql-parse-server

The following writes data into note field. I want to add items in the array.

mutation {
  updateParcel(input: { id: "B6aESEwWcA", fields: { notes: ["wow"]}}) {
    parcel {
      objectId
      notes {
        ... on Element {
          value
        }
      }
    }
  }
}

Alternatives / Workarounds

the only alternatives we have is to use Rest or SDK

faysal515 avatar Mar 10 '21 06:03 faysal515

Thanks for suggesting.

As I understand from @davimacedo's comment, this would be an enhancement to the GraphQL interface of Parse Server, as this operation is not yet supported.

mtrezza avatar Mar 10 '21 15:03 mtrezza

hey i would like to work on this assign it to me if suited

Hriishikeshh avatar Oct 13 '24 14:10 Hriishikeshh

@Hriishikeshh we do not formally assign issues; please feel free to submit a PR and coordinate with authors of existing PRs in case there are any; we'll be happy to review.

mtrezza avatar Oct 14 '24 14:10 mtrezza