question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation for Feature class

See original GitHub issue

The Feature class seems like a key conceptual and organizational unit. It’s used throughout the code base, but there’s no documentation. Adding documentation for this particular item would be pretty high impact, IMO. It would make it much easier to use for beginners.

Here are some thoughts for an outline:

Feature Class Documentation

  • Overview
    • Purpose
    • Client Feature vs Server Feature classes
  • Server Feature
    • Arguments
      • schema
      • createResolversFunc
        • When is it invoked?
          • What should it return?
          • Using pubsub
            • explain the pubsub argument
        • createContextFunc
          • when is it invoked?
          • what should it return?
        • middleware
        • Hierarchical composition
          • explain new Feature(counter, post, user, graphqlTypes); in modules/index.js`
  • Client Feature
    • Arguments
      • navItem
      • tabItems
      • route
      • reducer
      • features
    • Hierarchical composition
  • Tutorial:
    • add a server feature
      • add a model using a migration
      • add graphql schema
      • add resolvers
    • add a client feature that uses the server feature

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:36 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
aneilbaboocommented, Dec 23, 2017

Great. I’ll submit a PR with the refactor and another PR on top of that with the documentation.

1reaction
verdvermcommented, Dec 18, 2017

I can put something in about Features with my upcoming auth docs. Here are some pointers in the meantime:

  • Features are different in the client and server. You could theoretically have multiple types of features on either end. They can be fractal, that is, a feature can have sub features.
  • Features are basically a predefined set of options that get recursively merged. Different params on the frontend and backend. You can change theses.
  • Feature code is found at the root of the client/server module directories
    • Definitions are in connector.js in the server, connector.web.jsx in the client
    • Feature inclusion is in the index.js
    • Actual features import the connector.js file and add the params they want
  • Common code uses Feature params to do things such as, create the context for the resolvers or build menus in the client.

In the auth-upgrades branch (https://github.com/sysgears/apollo-universal-starter-kit/tree/auth-upgrades)…

I have some examples of:

  • conditional features based on settings (see the {client,server}/modules/index.js files)
  • fractal features (see the {client,server}/modules/entities dirs)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature class basics—ArcGIS Pro | Documentation
Feature classes are collections of similar features (such as hydrants, roads, or parcels) stored as rows in tables. A feature class can be...
Read more >
How To: Add multiple documents as attachments to a feature ...
Enable attachments on the feature classes or tables: right-click the feature class in ArcCatalog and select Manage > Create Attachments. This creates an ......
Read more >
Developers — pyradiomics v3.0.1.post15+g2791e23 ...
PyRadiomics enumerates the available feature classes and input image types at initialization of the toolbox. ... Documentation is required!
Read more >
What are Valid feature class and table names in ArcGIS ...
It's in the documentation: Defining feature class properties. Specifically: Names must begin with a letter, not a number or special character such as...
Read more >
Prepare data to publish a feature service—Documentation
The data must have a valid spatial reference defined for it. · Esri · Do not define multiple layers for the same feature...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found