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

What's the best choice for a new angular project?

June 5, 2020 at 9:36pm

What's the best choice for a new angular project?

June 5, 2020 at 9:36pm
From what I see, it's either using angular-apollo which doesn't seem to be in the best and most reassuring state or using the core api on the new client v3. What would you recommend for a fresh angular graphQL project?

June 8, 2020 at 11:07am
Thank you for bringing up the question.
I too wonder what the migration strategy for apollo-angular is when it comes to apollo v3.
The docs only mention angular once putting it at the same level as "any other view layer", while providing active support for react use cases. :|
Please apollo, don't abandon the angular community support.
Edited
like-fill
2
  • reply
  • like
Related:

apollo-angular apollo 3.0 support

thumbsup
0
message-simple
0
like-fill
2
  • reply
  • like

June 9, 2020 at 8:09pm
If you're willing to try something out-of-the-box, why not give apollo-elements a shot, as web components interop with any framework. I'm planning to get to work on v3 support soon
Edited
  • reply
  • like
If you're willing to try something out-of-the-box, why not give apollo-elements a shot, as web components interop with any framework. I'm planning to get to work on v3 support soon
Thanks for the link. :) However apollo without proper tooling on the framework level will not be a suitable replacement for me at all. To me it feels like suggesting to use REST calls to a graphQL fan. :|
  • reply
  • like
I was heavily using the codegen to turn my backend schema into angular services. I wonder what to do about that since not upgrading in the near future is not an option.
  • reply
  • like

June 10, 2020 at 6:48am
I'm using codegen to generate TS typings, then I just import them along with the query
import { ApolloQuery, customElement, TemplateResult, html } from '@apollo-elements/lit-apollo';
import type { BusinessImpactCardsQueryData, BusinessImpactCardsQueryVariables } from '#schema';
import shared from '#components/shared.css';
import cardsShared from '../cards-shared.css';
import style from './business-impact-cards.css';
import BusinessImpactCardsQuery from './BusinessImpactCards.query.graphql';
@customElement('business-impact-cards')
export class BusinessImpact extends ApolloQuery<BusinessImpactCardsQueryData, BusinessImpactCardsQueryVariables> {
static readonly is = 'business-impact-cards';
static styles = [shared, cardsShared, style];
query = BusinessImpactCardsQuery;
renderData(): TemplateResult {
return html`
<nnrg-card>
// ... autocomplete on `this.data` here
</nnrg-card>
`;
}
}
So in that sense I don't need a service. It's been awhile since i've been in ng-land so I'm not sure what else you're getting out of it. If you're heavily leveraging ng features like forms etc it would be a difficult adjustment, indeed.
Edited
  • reply
  • like
In any case, best of luck on your refactor :D
  • reply
  • like

June 14, 2020 at 2:21pm
Thanks for sharing this. Unfortunately that will not work for my setup. I am making extensive use of many angular features.
I wonder if anyone is working on adding support of v3 for the angular side of Apollo.
  • reply
  • like
apollo-angular is a community-maintained library -- I don't believe the Apollo team is involved in any official capacity
  • reply
  • like
There's already an issue opened for it as you saw since you posted on there already
  • reply
  • like
if you have questions, you may want to try the discord channel https://discord.gg/AMF7N2w
  • reply
  • like