Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 557 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 557 Bytes

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 ;)