parse-community / parse-server

Parse Server for Node.js / Express
https://parseplatform.org
Apache License 2.0
20.89k stars 4.78k forks source link

insert items into array using graphql #7256

Open faysal515 opened 3 years ago

faysal515 commented 3 years ago

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

mtrezza commented 3 years ago

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.

Hriishikeshh commented 6 days ago

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

mtrezza commented 5 days ago

@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.