
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@apollo-elements/polymer
Advanced tools
π©βππ Polymer Elements for Apollo GraphQL ππ¨βπ
π Custom Elements with Polymer-style two-way binding from your Apollo cache π
π©βπ For developing with space-age Polymers π¨βπ
π Read the Full API Docs π
apollo-elements
are distributed through npm
the node package manager. To install a copy of the latest version of these elements in your project's node_modules
directory, first Install npm on your system, then run the following command in your project's root directory:
npm install --save @apollo-elements/polymer
@apollo-elements/polymer
does not depend on @polymer/polymer
. The components extend directly from HTMLElement, so they're suitable for use in any project, not just Polymer library apps.
See our docs on setting up Apollo client so your components can fetch their data.
Import the elements.
import '@apollo-elements/polymer/polymer-apollo-query';
import '@apollo-elements/polymer/polymer-apollo-mutation';
You can now use them in your polymer template:
<polymer-apollo-query
data="{{data}}"
variables="[[variables]]"
query="[[UserQuery]]"
></polymer-apollo-query>
<paper-icon-item>
<iron-image slot="item-icon">[[data.user.picture]]</iron-image>
[[data.user.name]]
</paper-icon-item>
Looking for other libraries? Want to use Apollo with vanilla extends HTMLElement
components? Check out our docs site
apollo-elements
is a community project maintained by Benny Powers.
FAQs
π©βππ Polymer Elements for Apollo GraphQL ππ¨βπ
We found that @apollo-elements/polymer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHubβs npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.