Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failo tipas #14

Open
sirex opened this issue Apr 24, 2024 · 0 comments
Open

Failo tipas #14

sirex opened this issue Apr 24, 2024 · 0 comments
Labels

Comments

@sirex
Copy link
Contributor

sirex commented Apr 24, 2024

file tipo atveju, grąžinami tokie duomenys:

  • _name - file name
  • _conent_type - mime content type
  • _content - base64 encoded file content, rodomas tik tuo atveju, jei explicitly nurodytas per ?select(pdf._content).
  • _size - file size in bytes

Tarkime jei turime modelį Report, kuris turi savybę pdf, tada duomenys atrodys taip:

{
    "_type": "datasets/example/Report",
    "_id": "4c55ed84-7bb5-403a-8db9-72800c6ad201",
    "_revision" : "dc512ece-d4ca-4437-b960-a0ac4d0f11b0",
    "name": "My report",
    "pdf": {
        "_name": "myreport.pdf",
        "_content_type": "application/pdf",
        "_content": "-- base64 encoded string --",
        "_size": 54685
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant