{% extends "base.html" %} {% block title %}Query Database{% endblock %} {% block content %}

Query Builder

1 for ascending, -1 for descending, either ascending or descending, both is not supported
{% if error %}
Error: {{ error }}
{% endif %} {% if query_params and query_params.conditions %}

Query Results ({{ results|length if results else 'No records found' }})

{% if results %} {% endif %}
{% if results %}
{% for field, types in field_types.items() %} {% endfor %} {% for doc in results %} {% for field in field_types.keys() %} {% endfor %} {% endfor %}
{{ field }}Details
{% set value = doc.get(field, 'N/A') %} {% if field == 'status' and value != 'N/A' %} {% set status_info = get_status_info(value) %} {{ value }} {% else %} {{ format_value(value) }} {% endif %}
{% else %}
No records match your query criteria.
{% endif %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}