Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.27 KB

File metadata and controls

46 lines (34 loc) · 1.27 KB

Grafbase ⨯ Swift

Join our Community

Getting Started

  1. Run npx degit grafbase/grafbase/examples/swift grafbase-with-swift to clone this example
  2. Change directory into the new folder cd grafbase-with-swift
  3. Run npx grafbase@latest dev in your terminal and go to http://localhost:4000
  4. Populate the backend with some Post entries using a GraphQL mutation:
mutation {
  postCreate(
    input: {
      title: "Swift + GraphQL!"
      body: "Hello from Grafbase."
      comments: [
        { create: { message: "GraphQL is awesome!" }
        { create: { message: "Another comment from Grafbase" } }
      ]
    }
  ) {
    post {
      id
    }
  }
}
  1. Open the project Grafbase Swift.xcodeproj with XCode
  2. Run the app!

Learn More About Grafbase

To learn more about Grafbase, take a look at the following resources:

  • Grafbase - learn about Grafbase features and API.

To learn more about Swift, take a look at the following resources:

Run on Codesandbox

Develop with Codesandbox