Skip to content

kamalkech/sveltekit-graphql

Repository files navigation

Creating a project

# clone project
git clone [email protected]:kamalkech/sveltekit-graphql.git

# install dependencies
cd sveltekit-graphql
npm install

# start servers sveltekit and graphql
npm run dev

# sveltekit endpoint
http://localhost:3000

# graphql endpoint
http://localhost:3000/graphql

Test graphql queries

Using graphql playground, this example to fetch two queries "hello" return just a string and "getItems" return list users from jsonplaceholder

query {
  hello
  getItems {
    value
    title
  }
}

enjoy ;)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published