swift - timeout in mutations with Apollo Client for IOs -
i have graphql database. server in cloud (graphcool). trying insert db value contains string base64 encoded image (a big string).
if insert string playground directly on graphcool ok. if call mutation apollo client (ios app) value not inserted. if substitute big string few letters string (i. e. "hello") mutation called apollo client goes ok , inserts new value.
i think problem timeout connection (the called mutation slower because of string length end refused).
i don't know how fix problem (and if problem think!)
here snippet of mutation :
mutation aggiungiannuncio ( $pagaproposta:string $indirizzo: string $username:id $settore:id $immagine:string ) { createannuncio( pagaproposta:$pagaproposta indirizzo:$indirizzo utenteid:$username settoreid:$settore urlimmagine:$immagine ) { id } } and mutation called swift :
func sincronizzaannuncio(idsettore:string){ apollo.perform(mutation: aggiungiannunciomutation(pagaproposta:cercajob.text, indirizzo:ricercacitta.text,username:idcorrente,settore:idsettore,immagine:base64), resulthandler: nil) } if need more information can edit everytime.
Comments
Post a Comment