Skip to content
/ ubiq Public

HugSQL & GraphQL based web app with minimal moving parts

Notifications You must be signed in to change notification settings

krimlabs/ubiq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ubiq

Ubiq is an experimental way to build GraphQL apis with minimal code.

The central idea is to define all resolvers as a series of interceptors. These interceptors are invoked in order, can pass data down the next interceptor and can exit in case of errors. All interceptors are defined statically in resolvers.edn file.

Ubiq also provides components that help you tie GraphQL queries and mutations directly to SQL statements via HugSQL and an authentication mechanism to speed up development of new projects.

Getting started

Ubiq assumes that you are comfortable with GraphQL, Lacinia, Lacinia-Pedestal and Integrant framework.

The difference (additional step) is the static definition of resolvers in resolvers.edn file.

Debug Guide

Since Ubiq wraps your functions at various levels, the error logs might not be helpful sometimes. In such cases, make sure that:

  • All interceptors used in resolvers.edn are imported in resolver component
  • Check that the :path variable to domain interceptor is valid

Releases

No releases published

Packages

No packages published