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.

Microfiber options (especially removeUnusedTypes) need to be exposed

See original GitHub issue

I just spent way too long hunting down a parameter that caused many types in my schema to be hidden, and which was not accessible via config.yaml. I had to change these lines in src/themes/default/data/index.js to display all the types:

  let opts
  opts = {
    removeUnusedTypes: false
  }
  const introspectionManipulator = new IntrospectionManipulator(
    introspectionResponse, opts
  )

This option should be in the top-level config.yaml instead of inaccessible.

This was especially frustrating because the documentation instructs the user to set "documented": true to unhide types, but that does not affect the ones dropped by this hidden setting.

The setting also mistakenly considers types unused if they implement an interface which is referenced, but are not referenced directly.

Thanks for sharing the package otherwise. It has been very helpful.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
newhousecommented, Jul 28, 2022

Ah yes, you’re only referencing the interface type and not the implementations…this is interesting.

Yeah, I think now that what I should do primarily is to update microfiber to consider types that implement an interface that is used as something to keep around. Let me check that out.

0reactions
felixvdcommented, Aug 9, 2022

Excellent, thank you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microfiber Cloths: Green Cleaning or Plastic Pollution?
We can still use microfiber to effectively clean viruses and bacteria from surfaces. They are a more sustainable option than paper towels or...
Read more >
Microfiber - an overview | ScienceDirect Topics
While traditional round fibres smear the dirt, the microfibre removes it. Microfibre cloths were originally created to clean high-precision lenses. The ...
Read more >
5 BEST Microfiber Car Cloths For Car Detailing
4. Zwipes Professional Microfiber Waffle Drying Towel · 4. Zwipes Professional Microfiber Waffle Drying Towel · 8 out of 10.
Read more >
What are the Pros and Cons of Microfiber Upholstery Fabric?
The pros and cons of microfiber upholstery fabric generally have to do with how the fabric holds up to stains, how easy it...
Read more >
How to Clean & Care for Microfiber Cloths!
Microfiber is one of the very best cleaning tools you'll ever come across, and if cared for properly, they can last for up...
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