# Need to POST Data to REST API using GraphQL Connector to support GraphQL Mutations

**URL:** https://community.apollographql.com/t/need-to-post-data-to-rest-api-using-graphql-connector-to-support-graphql-mutations/7995
**Category:** Schema Design
**Tags:** connectors
**Created:** [December 11, 2024, 12:10pm UTC](https://community.apollographql.com/t/need-to-post-data-to-rest-api-using-graphql-connector-to-support-graphql-mutations/7995 "2024-12-11T12:10:02Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![watson](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/watson/32/2053_2.png) [@watson](https://community.apollographql.com/u/watson)
#### Post date: [December 12, 2024, 7:37am UTC](https://community.apollographql.com/t/need-to-post-data-to-rest-api-using-graphql-connector-to-support-graphql-mutations/7995/3 "2024-12-12T07:37:33Z")

</div>

You should come to my livestream tomorrow on connectors! I’m going to follow up with questions after the stream in this thread and you can find a link for the stream there: [[Connectors Live] Stripe Q&A](https://community.apollographql.com/t/connectors-live-stripe-q-a/7999/1)

Here’s the example `POST` mutation we’re going to be building in the stream tomorrow and it’s going to cover [Strip checkout session](https://docs.stripe.com/api/checkout/sessions/create):

```auto
type Session {
  id: ID!
  url: String
}
type Mutation {
  createSession(items: [LineItemInput!]!): Session
    @connect(
      source: "stripe"
      http: { 
        POST: "/checkout/sessions"
        body: """
          mode: $("payment")
          line_items: $args.items 
          success_url: $("https://my-website.com")
        """
      }
      selection: """
        id
        url
      """
    )
}

input LineItemInput {
  price: ID!
  quantity: Int
}

```

After the stream we’re going to have a couple additional examples out there and a space to share more. I’ll have more concrete examples to show you soon 🙏

---

_[View the full topic](https://community.apollographql.com/t/need-to-post-data-to-rest-api-using-graphql-connector-to-support-graphql-mutations/7995)._
