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.

There is any [Plugins] contribution guide?

See original GitHub issue

Hi,

In my team, on the server-side, we’re loving this nexus schema thing.

We’re using nexus all over our project resolvers, and we are founding some gaps to fill, and I thought it would be fun to contribute with a specific plugin inside the schema. (ref)

  • 1) There is any contribution guide?
  • 2) Or some examples I can reference to start with?

Oh, by the way, I’m planning to build something to check customizable arguments validation.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
filoscodercommented, Sep 26, 2020

In theory I believe that each field of an input is also visited/resolved, but I am not sure if nexus supports that.

You’re right, each field is _visited, but as much as I know, only when the fields are created not when a query or mutation is resolved. Anyways I’m writing some test code, and I think for the next week will be ready on npm 👍🏾

2reactions
santialbocommented, Sep 4, 2020

I’m very curious to see what you built. We also built a few plugins including:

  • An offset/limit based pagination plugin with other capabilities
  t.paginatedField("users", {
    type: "User",
    searchable: true,
    sortableBy: ["name", "createdAt"], // <- type-safe, pulling property names from the specified type.
    ...
  });
  • An argument validation plugin
export const doSomething = mutationField(
  "doSomething",
  {
    ...
    args: {...},
    validateArgs: validateAnd(
      notEmptyArray((args) => args.petitionIds, "petitionIds"),
      notEmptyArray((args) => args.userIds, "userIds"),
      maxLength((args) => args.message, "message", 1000)
    ),
    ...
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

There is any [Plugins] contribution guide? · Issue #502 - GitHub
Hi,. In my team, on the server-side, we're loving this nexus schema thing. ... 1) There is any contribution guide? 2) Or some...
Read more >
Contributing to the IntelliJ Platform - JetBrains Marketplace
The forums are an excellent source for users and contributors interested in having technical discussions, answering questions, or resolving ...
Read more >
Contribution Points | Visual Studio Code Extension API
Contribution Points are a set of JSON declarations that you make in the contributes field of the package.json Extension Manifest. Your extension registers ......
Read more >
Plugin contribution - MoodleDocs
This page describes how to contribute your code into the Plugins ... the Plugin contribution checklist and follow all the guidelines there.
Read more >
Writing Telegraf Input Plugin - Is Contribution Guide Up to Date?
telegraf -sample-config -input-filter <plugin-name> -output-filter influxdb. I get nothing output for input plugins. I'm sorry there might ...
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