Concepts
Point-in-time queries
Asking questions of the law as it stood on a date.
Every indexed provision stores its amendment history. Passing `as_of` restricts retrieval to text in force on that date.
const answer = await nexlex.query({
question: "Was electronic service valid under this rule?",
jurisdiction: "IN",
asOf: "2019-06-30",
});
for (const claim of answer.claims) {
console.log(claim.text, "→", claim.source.citation);
}