anvilco/spectaql

Access data rather than rendered HTML

timmyg opened this issue · 4 comments

timmyg commented

Hi, we are trying to write a completely custom frontend and was wondering if there was any way to tap into just the data object that is created to generate the html?

timmyg commented

Looking like loadData is what I want

timmyg commented

This is working for me:

const { loadData, resolveOptions } = require('spectaql');
await loadData(resolveOptions(spectaqlOptions));

@timmyg yeah this should work for you. I've been meaning to get around to documenting that part of the API better, but that's it.

Hi, we are trying to write a completely custom frontend and was wondering if there was any way to tap into just the data object that is created to generate the html?

Out of curiosity, can you provide some more context? You just like all the stuff that SpectaQL does regarding organization, converting to objects, metadata, etc, but you'd like to just do the HTML part yourself? Would love to hear what you like and don't like about the library, but you are of course welcome to use it however you see fit!