Javascript-React-Apollo-GraphQL-Ramda-Prisma

All In One


  • 首页

  • 标签

  • 分类

  • 归档

  • 站点地图

  • 搜索

摘要|Why use static types in JavaScript? (A 4-part primer on static typing with Flow)

发表于 2018-02-12 | 更新于: 2019-04-28 | 分类于 技术备忘 | 阅读次数:
字数统计: 594 | 阅读时长 ≈ 3
原文参见Why use static types in JavaScript part one Flow 的快速介绍boolean描述boolean值1var isFetching: boolean = false; numbernumber 包含了Infinity和NaN123var luckyNumber: number = 10;var notSoLuckyNumber: numb ...
阅读全文 »

摘要|A gentle Introduction to React's Higher Order Components

发表于 2018-02-12 | 更新于: 2019-04-28 | 分类于 技术备忘 | 阅读次数:
字数统计: 1,337 | 阅读时长 ≈ 7
原文在A gentle Introduction to React’s Higher Order Components副标题是:如何在在高阶组件中使用条件性渲染 Higher order components缩写为 HOCs.可以用于各种用例, 这里集中在条件性渲染上. 不断增长的组件假设有给TodoList组件,实例代码如下: 12345678910111213function App(p ...
阅读全文 »

摘要|Full-stack React + GraphQL Tutorial(part4)

发表于 2018-02-10 | 更新于: 2019-04-28 | 分类于 技术备忘 | 阅读次数:
字数统计: 650 | 阅读时长 ≈ 3
这个是之前看到apollo-client 的入门文章,随着学习,回过头来看看,觉得非常有意思 不准备全部翻译,有些有用的地方强调一下 系列文章 Part 1 : Setting up a simple client Part 2: Setting up a simple server Part 3: Writing mutations and keeping the client in s ...
阅读全文 »

摘要|Full-stack React + GraphQL Tutorial(part1)

发表于 2018-02-10 | 更新于: 2019-04-28 | 分类于 技术备忘 | 阅读次数:
字数统计: 488 | 阅读时长 ≈ 2
这个是之前看到apollo-client 的入门文章,随着学习,回过头来看看,觉得非常有意思 不准备全部翻译,有些有用的地方强调一下 系列文章 Part 1 (this part): Setting up a simple client Part 2: Setting up a simple server Part 3: Writing mutations and keeping the c ...
阅读全文 »

翻译|Prisma Data Model

发表于 2018-02-09 | 更新于: 2019-04-28 | 分类于 翻译 | 阅读次数:
字数统计: 2,537 | 阅读时长 ≈ 11
概览Prisma 使用 GraphQL Schema Definition Language 定义数据模型.数据模型可以写在一个或多个.graphql文件中.在内部它是 Prisma 生成实际数据库 schema 的基础.如果只使用单个的定义文件,可以被称为datamodel.graphql. .graphql文件需要在prisma.yml中声明. 例如: 123datamodel: - t ...
阅读全文 »

Prisma 实现新特性的步骤

发表于 2018-02-08 | 更新于: 2019-04-28 | 分类于 技术备忘 | 阅读次数:
字数统计: 43 | 阅读时长 ≈ 1
Adjust data model (if necessary) Deploy Prisma database service to apply changes to data model (if necessary) Add new root field (on the Query, Mutation or Subscription field) to application schema I ...
阅读全文 »

摘要|GraphQL Databases — A preview into the future of Graphcool

发表于 2018-02-08 | 更新于: 2019-04-28 | 分类于 技术备忘 | 阅读次数:
字数统计: 390 | 阅读时长 ≈ 1
GraphQL 数据库- Graphcool 未来展望 构建 GraphQL 服务器的方法更加符合常规定义的 GraphQL schema 如何映射到数据库在 graphql的应用中有两层,一层是数据库层,一层是应用层(graphql发挥作用的地方).可以作为 REST API 的”gateway”,整合多个 API,或者是遗留的资源. GraphQL DataBase 使用 SDL 简单明了的 ...
阅读全文 »

摘要|GraphQL Server Basics The Network Layer

发表于 2018-02-08 | 更新于: 2019-04-28 | 分类于 技术备忘 | 阅读次数:
字数统计: 365 | 阅读时长 ≈ 2
#GraphQL Server Basics: The Network LayerGraphQL Server Basics: The Network Layer Graphql 通过 HTTP协议提供服务以 schema 为核心,定义好了以后后端的 schema和 resolver 之后, 如何实现 Graphql 就是问题了 express.js 的中间件Express 中间件接收req,r ...
阅读全文 »

Apollo-client 的Incremental loading(增量加载)

发表于 2018-02-04 | 更新于: 2019-04-28 | 分类于 技术备忘 | 阅读次数:
字数统计: 156 | 阅读时长 ≈ 1
Incremental loadingfetchmore方法1234567891011121314151617181920212223242526272829const FeedQuery = gql` query Feed($type: FeedType!, $offset: Int, $limit: Int) { # ... }`;const FeedWithD ...
阅读全文 »

Recompose libary Readme

发表于 2018-02-02 | 更新于: 2019-04-28 | 分类于 Readme | 阅读次数:
字数统计: 3,682 | 阅读时长 ≈ 23
APIIn these API docs, a higher-order component (HOC) refers to a function that accepts a single React component and returns a new React component. 1const EnhancedComponent = hoc(BaseComponent) This f ...
阅读全文 »
1…8910…14
React-Apollo

React-Apollo

base on javascript

136 日志
16 分类
90 标签
0%
© 2016 — 2019 React-Apollo | Site words total count: 190.2k