
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
angular1-apollo
Advanced tools
Use your GraphQL server data in your Angular 1.0 app, with the Apollo Client.
npm install angular1-apollo apollo-client --save
angular.module('app', [
'angular-apollo'
])
import AngularApollo from 'angular1-apollo'
import ApolloClient from 'apollo-client';
angular.module('app', [
AngularApollo
]).config((apolloProvider) => {
const client = new ApolloClient();
apolloProvider.defaultClient(client);
});
import gql from 'graphql-tag';
angular.module('app')
.controller('AppCtrl', (apollo) => {
apollo.query({
query: gql`
query getHeroes {
heroes {
name
power
}
}
`
}).then(result => {
console.log('got data', result);
});
});
import gql from 'graphql-tag';
angular.module('app')
.controller('AppCtrl', (apollo) => {
apollo.mutate({
mutation: gql`
mutation newHero($name: String!) {
addHero(name: $name) {
power
}
}
`,
variables: {
name: 'Batman'
}
}).then(result => {
console.log('got data', result);
});
});
This project uses TypeScript for static typing and TSLint for linting. You can get both of these built into your editor with no configuration by opening this project in Visual Studio Code, an open source IDE which is available for free on all platforms.
FAQs
Angular 1.0 client for Apollo
We found that angular1-apollo demonstrated a not healthy version release cadence and project activity because the last version was released 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
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.