Menu
Strapql LogoStrapql LogoStrapqlDocsBlog
GitHub
๐ŸŒœ
๐ŸŒž
Strapql LogoStrapql LogoStrapql
  • Docs
  • Blog
  • GitHub
  • Introduction
    • What is Strapql ?
  • Queries
    • ๐Ÿ™‹ Me Query
    • ๐Ÿง‘ Retrieve/Fetch a single User
    • ๐Ÿ‘ฅ Retrieve/Fetch all Users
    • ๐Ÿ“ฎ Fetch/Retrieve a single entry in collection type
    • ๐Ÿ“’ Fetch/Retrieve all entries in collection type
    • ๐Ÿ“‚ Get all files
    • ๐Ÿ‘จโ€๐Ÿ’ป Fetch a single role
    • ๐Ÿ‘จโ€๐Ÿ’ป ๐Ÿ‘จโ€๐Ÿ’ผ Fetch all roles
  • Mutations
    • ๐Ÿ”’ Register and Login
    • Create a User
    • ๐Ÿ”„ Update a User
    • โŒ Delete/Remove a User
    • ๐Ÿ†• Create an Entry in a Collection Type
    • ๐Ÿ”„ Update an entry in collection type
    • โŒ Delete/Remove an entry in collection type
    • ๐Ÿ“ค ๐Ÿ–ผ๏ธ Upload a single image
    • ๐Ÿ“ค ๐Ÿ–ผ๏ธ Upload a single image in separate fields

๐Ÿ™‹ Me Query

To identify current user, you can use me query, like this :

query MeQuery {
me {
id
username
email
confirmed
blocked
role {
id
name
description
type
}
}
}
Note : `me` query requires JWT attached in headers!

๐Ÿ“Ž How to attach JWT in headers :#

authorization : Bearer YOUR_TOKEN

Edit this page
Previous
ยซ Introduction to Strapql
Next
๐Ÿง‘ Retrieve/Fetch a single User ยป
  • ๐Ÿ“Ž How to attach JWT in headers :

Docs

  • Get Started

Community

  • Discord
  • Strapi Forum
  • YouTube
  • Stack Overflow
  • Twitter

More

  • Blog
  • GitHub
Copyright ยฉ 2022 Strapql, Built with โค๏ธ by kevin.