Skip to main content
These docs will be deprecated and no longer maintained with the release of LangChain v1.0 in October 2025. Visit the v1.0 alpha docs
Open In ColabOpen on GitHub

Fauna

Fauna is a Document Database.

Query Fauna documents

%pip install --upgrade --quiet  fauna

Query data exampleโ€‹

from langchain_community.document_loaders.fauna import FaunaLoader

secret = "<enter-valid-fauna-secret>"
query = "Item.all()" # Fauna query. Assumes that the collection is called "Item"
field = "text" # The field that contains the page content. Assumes that the field is called "text"

loader = FaunaLoader(query, field, secret)
docs = loader.lazy_load()

for value in docs:
print(value)

Query with Paginationโ€‹

You get a after value if there are more data. You can get values after the curcor by passing in the after string in query.

To learn more following this link

query = """
Item.paginate("hs+DzoPOg ... aY1hOohozrV7A")
Item.all()
"""
loader = FaunaLoader(query, field, secret)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.