LaraQL is a lightweight, Eloquent-inspired JavaScript ORM for Lighthouse GraphQL, currently at version 1.0.1 as of 2025. It brings the familiar Laravel syntax to frontend development, allowing developers to use methods like all(), find(), where(), and paginate() to query GraphQL APIs. Released on GitHub under nodesol/laraql, it differentiates itself by providing a clean, Eloquent-like interface for Lighthouse backends, with support for complex where conditions, pagination, and custom headers. The library is still early-stage and may have limited community adoption.
npm install laraqlgraphNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the Model class with a GraphQL endpoint, defines a User model, and fetches all users with selected fields.
Add nodesol/laraql as a dependency in package.json pointing to GitHub repository.
Call Model.init() in your application bootstrap before any model usage.
Use import syntax or set type: 'module' in package.json.
Ensure backend uses Lighthouse directives like @paginate and @guard as expected.
Create manual type declarations or use JSDoc for type hints.
Call Model.init({ url: '...' }) in your bootstrap code before any model operations.Install from GitHub: npm install nodesol/laraql; ensure package.json references the correct path.
Verify backend pagination implementation matches Lighthouse conventions.
Re-run Model.init() with correct url and optional headers.