Skip to content

bluelearn-open-source/blueforest-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blueforest-backend

Crete New User

id is created automatically

mutation createMutation {
  createUser(userData: {discordId: {put discord id here}, discordTag: {put discord tag like this "TIlak#7891"}, avatar: {put link of the image here} , status: {true,False}, xp: {put int here}, coins: {put integer here}, tressUnlocked: [1,2,3]}) {
    user {
      discordId
      discordTag
      avatar
      status
      xp 
      coins
      tressUnlocked{
        treeId
        treeName
      }
    }
  } 
}

to get all users

query
{
  allUsers
  {
    discordId
    discordTag
    tressUnlocked
    {
      treeId
      treeUrl
      treeName

    }
  }
}

to get user by id




About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published