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.

Hi,

I’m trying to send a list of items into a mutation. But, I’m receiving a

Cannot parse the unexpected character \".\".\n\

The rendered query doesn’t contain quotes (I think that’s the problem). Do you have any solutions for that?

Query:

fun updateSomething(mylist: ArrayList<String>): Kraph {
    return Kraph {
        mutation {
            func("updateSomething", args = mapOf("mylist" to mylist)) {
                field("mylist")
            }
        }
    }
}

This will render:

{"query": "mutation { \nupdateSomething(input: { mylist: [item1, item2] }) {\nmylist\n}\n}", "variables": null, "operationName": null}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
VerachadWcommented, Mar 24, 2017

Nice. As mentioned, I will try to release this weekends after cleanup stuffs and fix Travis CI config.

On Fri, Mar 24, 2017 at 5:36 PM Eduardo Stuart notifications@github.com wrote:

@VerachadW https://github.com/VerachadW Yes, it works. Thanks a lot.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/VerachadW/kraph/issues/4#issuecomment-288988187, or mute the thread https://github.com/notifications/unsubscribe-auth/AE6jE6xptv_6p4sMfQ7CGvPreZ1ts_dJks5ro5zKgaJpZM4Mj7I1 .

– Regrads, Verachad Wongsawangtham (Birth) Android Developer

0reactions
IHNELcommented, Feb 23, 2018

@VerachadW I’m using version 0.5.0. it doesn’t work if the data field contains double quotes character inside and throw syntax error. Please help

mutation { createProduct(title: “my name is “binh” ") {…} }

Read more comments on GitHub >

github_iconTop Results From Across the Web

Punctuations for quotes in a list
American style is to place the comma inside the quotes. This is universally the case in publishing and accords with all style guides ......
Read more >
When writing a list in which the items are in quotations ...
A very simple rule of thumb to follow is that any punctuation that is part of a quotation goes inside, any that isn't...
Read more >
Quote List Items
This is a super simple browser-based application that quotes list items. You can quote lists of any format with any items in them...
Read more >
A to Z popular topic quotes list
Browse your favourite topic quotes from Happiness, Motivation, love, Success etc.
Read more >
The 100 Most Famous Quotes of All Time
Best Quotes of All Time · Spread love everywhere you go. · When you reach the end of your rope, tie a knot...
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