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

๐Ÿ“‚ Get all files

All right, I got images and files uploaded to my Strapi app but how do I know what files did I upload ?

To get all the files uploaded to database within your Strapi app, here is the query :

query FetchFiles {
files {
id
createdAt
updatedAt
name
alternativeText
caption
width
height
formats
hash
ext
mime
size
url
}
}

Unfortunately, currently Strapi does not provide a query to fetch a single file.

Edit this page
Previous
ยซ ๐Ÿ“’ Fetch/Retrieve all entries in collection type
Next
๐Ÿ‘จโ€๐Ÿ’ป Fetch a single role ยป

Docs

  • Get Started

Community

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

More

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