Questions tagged [ferry]
15 questions
4
votes
1 answer
zsh: command not found: get-graphql-schema
I'm trying to download my graphcms schema into my flutter project. I'm using Ferry as the graphql client.
According to the ferry docs I just need to run npm install -g get-graphql-schema and then run get-graphql-schema [ENDPOINT_URL] >…

Jason Lloyd
- 378
- 7
- 23
3
votes
2 answers
Flutter Ferry library for graphql. ferry_generator producing error
I am implementing graphql in my flutter project using Ferry. However upon following the installation process. I came across a loop on the build runner unable to generate the schema for the graphql.
PS THE_PROJECT_PATH > flutter pub run build_runner…

GhoSt
- 321
- 2
- 12
3
votes
1 answer
JSON data types cannot be deserialized from a GraphQL query by using Ferry package
I have this GraphQL query:
query QuoteRequests($page: Int!) {
getQuoteRequestsList(page: $page) {
vehicle
body
licensePlate
vin
quality
currency
items
}
}
It generates this sample result:
{
"data": {
…

Ουιλιαμ Αρκευα
- 5,561
- 7
- 35
- 61
2
votes
0 answers
Ferry generator does not generate .data.gql file when using inline fragment inside fragment
I am trying to create a queryC that returns an interface type. But after I run the ferry generator, the file query.my_query.data.gql.dart is not generated.
These are the…

Ivone Djaja
- 477
- 6
- 13
2
votes
1 answer
Flutter: How to refresh token when token expires with ferry (graphql) client?
How to retrieve a new token with a refresh token in flutter in a ferry (graphql) client?
The response after a mutation looks like this:
{
"data": {
"auth_login": {
"access_token": "ey...",
"refresh_token": "Ua...",
"expires":…

B0r1
- 400
- 3
- 15
1
vote
0 answers
Failed to precompile build script/Ferry with Flutter
I get this error after "flutter pub run build_runner build --delete-conflicting-outputs" , while I'm using ferry generator
[INFO] Generating build script...
[INFO] Generating build script completed, took 3.9s
[INFO] Precompiling build…

Areen
- 11
- 1
0
votes
1 answer
What is enum DataSource.Link in flutter ferry?
I am looking at this code in the file operation_response.dart from ferry_exec 0.3.1 https://pub.dev/packages/ferry_exec
enum DataSource {
/// A placeholder response source which can be used when waiting for another source
None,
/// Data…

Ivone Djaja
- 477
- 6
- 13
0
votes
0 answers
Cache not updated after adding paginated data through updateResult with ferry
I have a paginated list of photos (by groups of 50) that I fetch via a graphql query through ferry:
query Photos(
$paging: CursorPaging!
) {
photos(paging: $paging) {
edges {
cursor
node {
id
name
}
}
…

Charles Rostaing
- 548
- 5
- 17
0
votes
1 answer
Flutter Ferry GraphQL filter by eq null
I am having issues with passing null into graphQL filter variables
GGetPostsReq request = GGetPostsReq.fromJson({
"vars": {
"where": {
"deletedByProfileGuid": {
"eq": null
}
}
}
…

THE AMAZING
- 1,496
- 2
- 16
- 38
0
votes
2 answers
Failed to precompile build script .dart_tool/build/entrypoint/build.dart
I am facing a problem while updating the ferry package from 0.10.4 to 0.13.0. When executing dart run build_runner build --delete-conflicting-outputs, it always throws the next error:
`[WARNING] Invalidated precompiled build script due to core…

peter_lagoon
- 1
- 2
0
votes
1 answer
Reset ListView in flutter
I have my app connected to graphql using ferry and pagination working. Right now it fetches the first 25 results when the page loads and then when I scroll to the bottom it fetches the next 25. Below is the code that does that.
final…

Code200monkey
- 41
- 3
0
votes
1 answer
Pagination with Flutter, Ferry, Graphql?
I have graphql hooked up, and the collection in question has about 2000 documents. What I want to do is simply load in 25 at a time. If I perform the query to fetch the full list it takes 5-10 seconds, so what I need is for it to only ask for 25 at…

Code200monkey
- 41
- 3
0
votes
1 answer
Ferry graphql dart types generator does not work with ENUM
I am trying to generate dart types from my schema.graphql file described in ferry doc.
https://ferrygraphql.com/docs/codegen
I get this error while building the graphql code
flutter pub run build_runner build
[INFO] Generating build…

helloworld331
- 166
- 2
- 9
0
votes
1 answer
Cant use flutter DateTime in ferry query
Here is the query
query UpcomingPendingEvents($attendantId: ID, $eventDateTimeGt: DateTime) {
attendances(attendant_Id: $attendantId, attending: "0",
event_Datetime_Gt: $eventDateTimeGt, first: 10,) {
# some fields here
…

only4
- 139
- 1
- 11
0
votes
0 answers
Ferry GraphQl and returning Stream of data for Query
I see that Query from Ferry returns Stream. Is it possible that it will smartly listen for updates? or does Stream for query always emit only a single value?

jakub
- 3,576
- 3
- 29
- 55