menu

Apollo

A community of developers, designers and others who love Apollo and GraphQL. 🚀

Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Studio
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team
Hugh Willson
@hwillson
Ellen Shapiro
@designatednerd
Jesse Rosenberger
@abernix
Jake Dawkins
@jakedawkins
Martin B
@mbonnin
James Baxley
@jamesbaxley
Jason Paulos
@jasonpaulos
Julia Black
@juliablack
Khalil Stemmler
@khalilstemmler
Martijn Walraven
@martijnwalraven
Jenn Creighton
@jenncreighton
Peggy Rayzis
@peggy
Ben Church
@bnchrch
Trevor Scheer
@trevor-scheer
Adam Zionts
@zionts
Danielle Man
@daniman
Evans Hauser
@evans
Stephen Barlow
@stephen-barlow
Ashi Krishnan
@rakshesha
Michael Watson
@michael-watson
Thao
@thao
Justin Anastos
@justin-anastos
Tim Hingston
@timbotnik
Adam Torres
@adamatorres
Alisha Ehrlich
@alisha-ehrlich
Chang Wang
@cheapsteak
Claire Hough
@clairehough
David Glasser
@glasser
François Dufour
@francois-dfr
Matt DeBergalis
@debergalis
Sachin D. Shinde
@sachin-shinde
Posts
Members
Info

All queries registered twice

Every query in our application shows up twice in the Apollo DevTools. I noticed this as I wanted to refetch a query after a mutation, and am using the query name for this. I then see two requests to the server - one with all my variables set, and the other one without that. I…

thumbsup
0
message-simple
0

@apollo/client codegen against headless WordPress (wpgraphql endpoint)

So I was finally able to generate strong typescript graphql types by writing a script that runs local queries/mutations against a wpgraphql endpoint on headless WordPress That said, I plan on using these generated types for props passing throughout the components and pages…

thumbsup
0
message-simple
0

Playground(right) and useQuery(wrong) different

query GetAllLanguagesOnboarding($id: bigint) { languages(order_by: {sort_order: asc}) { name code onboardings(where: {status: {_eq: true}, id: {_eq: $id}}, order_by: {sort_order: asc}) { id image title description status sort_order } }…

thumbsup
0
message-simple
1

Playground returns the right data while useQuery returns undefined

this is the query const GET_CAPTION_COMMENTS = gql query Caption($caption: ID!) { caption(where: { id: "$caption" }) { id } } and I use the props id on the child component as variables to get the data: …

thumbsup
0
message-simple
2

Query Arguments

I have a query that accepts arguments. Wondering if the @client directive works for reading the value of these args from the cache? Example: { …

thumbsup
0
message-simple
2

How to query article data with category slug

Hi all, Relationship between Category has many Articles. when i do the query query { …

thumbsup
1
message-simple
0

Components are not updated after refetchQueries

Hey, Im using in one of my mutation refetchQueries. I've passed array of objects with 2 queries which I want to refetch. I have opened in incognito mode one of the page which should receive fresh data after that operation. Unfortunately my component isn't updated. I want to…

thumbsup
0
message-simple
4

Is it considered a good practice to use useQuery and useState together?

Is it considered a good practice to use useQuery and useState together to map/remap deeply neseted query results to a flat, 1 level structure? If not, what would be the proper approach?

thumbsup
0
message-simple
2

What is the advantage of refetchQuerie Compared to just calling useQuery again

thumbsup
0
message-simple
0

cache issues with @apollo/client

Recently upgraded to @apollo/client and i'm running into some issues that I wasn't seeing with @apollo/react-hooks. For example.. I make a query for employees which have schedule_ranges and the ranges have shifts. example query: …

thumbsup
0
message-simple
3