Skip to content

Latest commit

 

History

History
 
 

README.md

Grafbase ⨯ Kotlin

Join our Community

Getting Started

  1. Run npx degit grafbase/grafbase/examples/kotlin grafbase-with-kotlin to clone this example
  2. Change directory into the new folder cd grafbase-with-kotlin
  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: "Kotlin + GraphQL!"
      body: "Hello from Grafbase."
      comments: [
        { create: { message: "GraphQL is awesome!" }
        { create: { message: "Another comment from Grafbase" } }
      ]
    }
  ) {
    post {
      id
    }
  }
}
  1. Open the project with Android Studio
  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 Kotlin, take a look at the following resources:

Run on Codesandbox

Develop with Codesandbox