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.

Send more compact query

See original GitHub issue

It seems that Snowflaqe currently sends the exact GraphQL queries and mutations as the ones defined in the GraphQL files. So given this query:

query Countries {
  name
}

This code will be generated in the GraphqlClient module:

member _.Countries() =
  async {
    let query = """
      query Countries {
        name
      }
      """

  // ...

Which has 2 drawbacks:

  1. The sent payload will be heavier (since it includes line returns and spaces)
  2. Some servers’ libraries (like Elixir’s Absinthe) don’t support queries containing line returns (natively)

Is there an option to generate “compact” queries and mutations?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Zaid-Ajajcommented, Nov 1, 2020

Awesome, thanks for the confirmation! If you come across any more issues, please let me know 🙏

0reactions
gaku-seicommented, Nov 1, 2020

That was a very fast fix!! Thank you very much @Zaid-Ajaj it works like a charm now 🎊

Btw, when you update your message, I don’t get notifications, so feel free to comment more so that I can answer you quickly

Sure, I wasn’t aware of this, I will do that next time 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

sql - Is it possible to make this view's query more compact?
You can use table value constructor (usually used in INSERT) and then CROSS JOIN on it. SELECT ma.ManningID , ... , p.Pline ,...
Read more >
How to write this query in SQL Server Compact in more ...
There is no multi value CASE statement in T-SQL. However, you could do a join to a constant value row source like this:...
Read more >
SQL Compact Query Analyzer
A fast and lightweight tool for querying and manipulating SQLCE databases. This tool supports SQLCE versions 3.0, 3.1, 3.5 and 4.0 - GitHub ......
Read more >
Analyze And View SDF Database Files With SQL Compact ...
It's a portable SQL query executor, analyzer, and table data viewer for SQL Compact databases. All it takes to analyze the database is...
Read more >
Chapter 4. Query Performance Optimization
Some queries ask for more data than they need and then throw some of it ... The client sends a query to the...
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