When to use watchQuery or query in Apollo-Angular?

query is something you just query for once, you can consider it as an equivalent of GET.

watchQuery is something you constantly keep a watch on query, whenever that query will be refetched or the data related to that query is changed from anywhere else, this method will keep on emitting the updated data.

It’s really simple, you can read the docs here.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)