Apphive Docs
Apphive Documentación ( Spanish)
Apphive Documentación ( Spanish)
  • 👋Bienvenido a Apphive
  • FIRST STEPS
    • 🔍Apphive
      • Iniciar con una plantilla
      • Empezar desde el principio
    • 📐Apphive editor
      • Trabajar con contenedores
      • Diseño responsivo
      • Menu lateral
    • 📱Apphive Previewer
      • IOS App Preview
      • Android App Preview
    • 🤖Apphive AI
  • REFERENCE
    • 🎮Controles
      • Graphic View
        • Style
        • Data
      • Page
        • Style
        • Data
        • Events
      • Button
      • Swiper
        • Style
        • Data
        • Events
      • Video View
        • Style
        • Data
      • Icon
        • Style
        • Data
        • Events
      • Calendar
        • Data
        • Events
      • Web View
        • Style
        • Data
      • Map
        • Style
        • Data
        • Events
      • Camenra View
        • Style
        • Data
        • Events
      • Image
        • Style
        • Data
        • Events
      • Slider
        • Style
        • Data
        • Events
      • Radio
        • Style
        • Data
        • Events
      • Picker
        • Style
        • Data
        • Events
      • Switch
        • Style
        • Data
        • Events
      • Field
        • Style
        • Data
        • Events
      • Text
        • Style
        • Data
        • Events
      • Container
        • Style
        • Data
        • Events
    • ⚙️Functions
      • 🕹️Controls
        • Modify control
        • Trigger Event
          • Callbacks
          • Entry Vars
        • Open image viewer
          • Entry Vars
        • Toogle page loading
          • Entry Vars
        • Toogle bottom menu sheet
          • Callbacks
          • Entry Vars
        • Add collection to UI
          • Entry vars
        • Toogle side menu
          • Callbacks
        • Iterate children
          • Callbacks
          • Entry vars
        • Generate swiper content
          • Callbacks
          • Entry vars
      • 🔩App processes (E)
      • 🧭Navigation (E)
        • Replace screen
          • Entry Vars
        • Push Screen
          • Entry Vars
        • Return to last Screen
      • 💬Push Notifications (E)
        • Trigger App Process
          • Entry Vars
        • Send push
          • Callbacks
          • Entry Vars
        • Request Permission
          • Callbacks
      • 🗺️Geolocalization (E)
        • Start geolocation tracking http
          • Callbacks
          • Entry Vars
        • Start geolocation tracking
          • Callbacks
          • Entry Vars
        • Stop geolocation tracking
          • Callbacks
        • Get geolocation
          • Callbacks
          • Entry Vars
        • Get distance
          • Callbacks
          • Entry Vars
        • Geocoding
          • Callbacks
          • Entry Vars
        • Set fire geolocation
          • Entry Vars
        • Remove fire geolocation
          • Callbacks
          • Entry Vars
        • Query fire geolocation
          • Callbacks
          • Entry Vars
        • Get All fire geolocation
          • Callbacks
          • Entry Vars
        • Get fire geolocation
          • Callbacks
          • Entry Vars
        • Geo Fire
      • 📲Phone APIs (E)
        • Set Audio Time
        • dismissKeyboard
        • Read SMS (Android)
          • Callbacks
        • Is audio playing
          • Callbacks
        • Get Screen Dimentions
          • Callbacks
        • GetDeviceInfo
          • Callbacks
          • Entry Vars
        • Get connection type
          • Callbacks
        • Vibration phone
          • Entry Vars
        • Take a video
          • Callbacks
        • Take a photo
          • Callbacks
        • Stop Recording Audio
          • Callbacks
        • Stop playing audio
          • Callbacks
        • Start Recording audio
          • Callbacks
        • Start playing audio
          • Callback
          • Entry Vars
        • Show file browser
          • Callbacks
          • Entry Vars
        • Share
          • Callbacks
          • Entry Vars
        • read QR code
          • Callbacks
        • Barcode Read
          • Callbacks
        • Pause playing audio
          • Callbacks
        • Open WhatsApp
          • Callbacks
          • Entry Vars
        • Open Url
          • Entry Vars
        • Ope geo map
          • Callbacks
          • Entry Vars
        • Open calendar
          • Callbacks
        • Make a call
          • Entry Vars
      • 🔔Notifications (E)
        • Toast notification
          • Entry Vars
        • Send Alert
          • Entry Vars
        • Input dialog
          • Callbacks
          • Entry Vars
        • Confirmation alert
          • Callbacks
          • Entry Vars
      • ⛓️Logic (E)
        • Stop set interval
          • Callbacks
          • Entry Vars
        • JSON.stringify
          • Entry Vars
        • Generate uuid v1
        • Switch
          • Callbacks
          • Entry Vars
        • Set timeout
          • Callbacks
          • Entry Vars
        • Set interval
          • Callbacks
          • Entry Vars
        • Search in Object
          • Callbacks
          • Entry Vars
        • Regex Test
          • Callbacks
          • Entry Vars
        • Range Iteration
          • Callbacks
          • Entry Vars
        • Generate Random Numer
          • Callbacks
          • Entry Vars
        • Object keys
          • Entry Vars
        • Value is invalid
          • Callbacks
          • Entry Vars
        • Global Formater
          • Callbacks
          • Entry Vars
        • forEach
          • Callbacks
          • Entry Vars
        • debounce
          • Callbacks
          • Entry Vars
        • Conditional
          • Callbacks
          • Entry Vars
        • Concat
          • Entry Vars
        • Chronometer
          • Callbacks
        • Based on current OS
          • Callbacks
        • Array from object
          • Entry Vars
        • Arithmetic Operation
          • Entry Vars
      • 💿Local Storage (E)
        • Set page Value
          • Entry Vars
        • Save local storage data
          • Callbacks
          • Entry Vars
        • Set data DB direct
          • Callbacks
          • Entry Vars
        • Set app value
          • Entry Vars
        • Get local storage data
          • Callbacks
          • Entry Vars
        • Delete local storage data
          • Callbacks
          • Entry Vars
        • Delete all local Data
          • Callbacks
      • 📀Base de Datos (E)
        • Upload file
          • Callbacks
          • Entry Vars
        • Set data DB direct
          • Callbacks
          • Entry Vars
        • Save in DB
          • Callbacks
          • Entry Vars
        • Get Database Data
          • Callbacks
          • Entry Vars
        • Delete database data
          • Callbacks
          • Entry Vars
        • Copy Data From Path
          • Callbacks
          • Entry Vars
      • 🚗Navigation (E)
        • Replace screen
          • Entry vars
        • Push screen
          • Entry vars
        • Return to last screen
      • 👨‍👩‍👧Users(E)
        • Update email
          • Callbacks
          • Entry Vars
        • Update data from other user
          • Callbacks
          • Entry Vars
        • Update AuthInfo
          • Callbacks
          • Entry Vars
        • Sign Up
          • Callbacks
          • Entry Vars
        • Set user custom data
          • Callbacks
          • Entry Vars
        • Set other user custom data
          • Callbacks
          • Entry Vars
        • Logout
          • Callbacks
        • Login With Google
          • Callbacks
          • Entry Vars
        • Login With Facebook
          • Callbacks
        • Login with apple
          • Callbacks
        • Login
          • Callbacks
          • Entry Vars
        • Is Logged In?
          • Callbacks
        • Get App Users
          • Callbacks
          • Entry Vars
        • Get All Users
          • Callbacks
        • Get Data From Other User
          • Callbacks
          • Entry Vars
        • Forget Password
          • Callbacks
          • Entry vars
        • Change my password
          • Callbacks
          • Entry Vars
      • 📰Información general de las funciones (E)
      • 📲Tabla de controles (E)
        • Context Data
        • ListContext
        • PreviusOutputs
        • Color value
        • EventOutput
        • Auth
        • Complex
        • Controls
        • General
      • Navigation
        • Return To Last Screen
        • Push Screen
        • Replace Screen
      • Elements
        • Generate Swiper Content
        • Modify Control
        • Toggle Side Menu
        • Add Collections To UI
        • Toggle Page Loading
      • Users
        • Change My Password
        • Forget Password
        • Get All Users
        • Get Data From Other User
        • Is Logged In?
        • Login
        • Login With Facebook
        • Login With Google
        • Logout
        • Set Other User Custom Data
        • Set User Custom Data
        • Sign Up
        • Update Auth Info
        • Update Data From Other User
      • Cloud Database
        • Copy Data From Path
        • Eliminar datos de la base de datos (Delete Database Data)
        • Get Database Data
        • Save Data in Database
        • Upload File
      • Local Database
        • Delete All Local Data
        • Delete Local Storage Data
        • Get Local Storage Data
        • Save Local Storage Data
        • Set Page Value
      • Logic
        • Arithmetic Operation
        • Chronometer
        • Concat
        • Conditional
        • Debounce
        • Execute Cloud Process
        • For Each
        • Global Formater
        • Value Is Invalid
        • Generate Random Number
        • Range Iteration
        • Regex Test
        • Set Time Out
        • Generate UUID v1
      • Notifications
        • Send Alert
      • Phone API's
        • Is Audio Playing
        • Make a Call
        • Open Calendar
        • Open Geo Map
        • Open URL
        • Open WhatsApp
        • Pause Playing Audio
        • Read QR code
        • Set Audio Time
        • Show File Browser
        • Start Playing Audio
        • Stop Playing Audio
        • Take a Photo
        • Vibration Phone
      • Geolocation
        • Get Fire Geolocation
        • Geo Fire Listen Item
        • Query Fire Geolocation
        • Remove Fire Geolocation
        • Set Fire Geolocation
        • Geo Fire Set Multiple
        • Geocoding
        • Get Distance
        • Get Geolocation
        • Start Geolocation Tracking
        • Stop Geolocation Tracking
      • Push Notification
        • Request Permission
        • Send Push
        • Trigger Apps Process
      • Apps Processes
        • Stars
      • Google Maps
        • Distance Between Points
      • Stripe
        • Create a Subscription
        • Cancel a Suscription
        • List Subscriptions
        • Retrieve a Customer
        • Create Customer
        • Retrieve a Plan
        • Create a Card Token
        • Created a Card
        • List All Cards
        • Delete a Card
        • Create a Payment Intent
        • Confirm a Payment Intent
    • 🗄️Base de datos
      • Database Editor
        • Open database editor
        • View data
        • Add data
        • Edit data
        • Delete data
        • Export database data
        • View data nested collections
        • Links to Data
      • Cloud Database
        • Delete Database Data
        • Save Database Data
        • Read Database Data
      • Local Database
        • Delete Data
        • Read Data
        • Write Data
      • Custom Database
    • 📲Menu de variables
      • Skeleton Loader
      • Color Picker
      • Element Styles
      • Global Styles
        • Typography
        • Color Variant
        • Palette Selector
    • ⌨️Atajos de teclado
    • 🔩App processes
      • Formularios
        • Text Field
        • Text
        • Button
        • Switch
        • Picker
        • Radio
        • Slider
      • Multimedia
        • Image
        • Camera View
        • Map
        • Web View
        • Calendar
        • Icon
        • Video View
        • Chart
      • Containers
        • Container
        • Swiper
    • 📠API Functions
  • COMPILACIONES Y CARGAS A TIENDAS
    • ⚙️Configuraciones
      • Formularios
        • Text Field
        • Text
        • Button
        • Switch
        • Picker
        • Radio
        • Slider
      • Multimedia
        • Image
        • Camera View
        • Map
        • Web View
        • Calendar
        • Icon
        • Video View
        • Chart
      • Containers
        • Container
        • Swiper
    • 🔥Firebase
    • 👾Android
      • Transferir aplicación
      • Invitar usuario Google Play
    • 🍎IOS
      • Crear cuenta de desarrollador
    • 💻WebApp
    • 📘Facebook Developers
    • ❌Compilation errors
  • Precios
    • 💰Precio
  • Resources
    • 📕Otros
    • 📘Glosario
    • ❓FAQs
    • 🆘Soporte
Powered by GitBook
On this page
  • ​​ 📥 Entry vars
  • ​​ ↗ Callbacks‌
  • 📤 Out vars
  • ​​ 👉 Examples.

Was this helpful?

  1. REFERENCE
  2. Base de datos
  3. Cloud Database

Read Database Data

PreviousSave Database DataNextLocal Database

Last updated 1 year ago

Was this helpful?

Get database data is a function on the group, this function allows you to get data from the cloud database

​​ 📥 Entry vars

  • Database path to get data from. This is the path to specify the collection, sub-collection or data you want to get from the DB

  • Order by. Here you can enter a text to specify the property witch will be used to order the data and the same property will be used to filter the data if you add a Filter

  • Filter. Specify a value to be compared with the property specified in the Order by entry var

  • Limit to First. Set the number of elements to be returned starting from the beginning ****

  • Limit to Last. Set the number of elements to be returned starting from the end ****

  • Time to refresh. It's a number of seconds to save the data get from the query in cache, if another query was made before end this time the data will be obtained from the cache instead of the server, it is very useful to improve the app performance.

  • Is real time. If it is tun on each time a data change on the selected path the callbacks will be called.

If you don't specify an Index to get data from you will get all the collection data

When you get data from the database you also get all the child collections

​​ ↗ Callbacks‌

  • Permission denied. This callback is called when the database permissions doesn't allow to read the specified path

  • Empty data. This is called if the specified path and filters doesn't return any data

  • Data obtained. This is called once the server returns at least one result with the specified parameters

  • End.

📤 Out vars

  • Data. You can access to this Out var from the Data obtained Callback, after the successful query you can get the data in two posible structures:

    • If you set an index. You will get all the fields and the collection for the specified index

    • If you don't set an index. You will get an object with all the index and all the fields and collections for each index

​​ 👉 Examples.

Get all the products from the database

In this example we get all the products from the collection "products"

From the previous example, the database structure is the following:

And we have this data on the database:

Then the result structure after getting the database data will be:

Get a single product from the database

With the same data of the previous example, if we get just a simple index, for example "chesse_cake" you need to add the function as show on the image:

In this case we set an Index, then the result data will be:

🗄️
Cloud Database
Data structure for products
Get database data multiple index result
Get single index
Result of a single index data