Giter VIP home page Giter VIP logo

Comments (2)

wilkerlucio avatar wilkerlucio commented on August 23, 2024

Hello, this is a complete list of all the namespaces you might use, but usually, you only need a few of them. The problem with an API namespace is that it will end up requiring many things you don't need, adding to start time. This was a problem in Pathom 2 and that's the reason to get things separate in Pathom 3.

In reality, you can do a lot with just 3 of those:

; this one to create resolvers and mutations
[com.wsscode.pathom3.connect.operation :as pco]
; this one is to register resolvers, creating the indexes
[com.wsscode.pathom3.connect.indexes :as pci]

; then to setup EQL processor you will use:
[com.wsscode.pathom3.interface.eql :as p.eql]
; OR, in case you use async, gonna be this instead:
[com.wsscode.pathom3.interface.async.eql :as p.a.eql]

These will cover most of the standard Pathom operations, in projects that are more than demos, usually, you gonna use pco in a lot of places to define resolvers, while the indexes and operation you will have in a single place to start the register and set up the EQL processor.

You are welcome to set up your own API namespace as well if you like to concentrate the things in a single namespace. So I don't consider this an issue at the library level.

from pathom3.

lgrapenthin avatar lgrapenthin commented on August 23, 2024

Maybe some spec style "dynaload" would help with the start time. Alternating between unfamiliar namespaces while learning a new library is annoying and adds unnecessary overhead. I'll be waiting for a better experience.

from pathom3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.