This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query timeLine { | |
timeline(filter: "everyone") { | |
id | |
timeline { | |
entityId | |
entityType | |
entity{ | |
...on User{ | |
id | |
avatar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query tineline { | |
timeline(filter: "everyone", limit: 10, offset: 0) { | |
id | |
timeline { | |
id | |
entityType | |
entityId | |
entity { | |
__typename | |
... on User { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Windows.h" | |
#include <iostream> | |
#include <conio.h> | |
#include <cmath> | |
#include <vector> | |
#include <string> | |
#include <sstream> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
using namespace std; | |
struct Result | |
{ | |
int fromIndex, len; | |
long long total; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { split } from 'apollo-link'; | |
import { HttpLink } from 'apollo-link-http'; | |
import { WebSocketLink } from 'apollo-link-ws'; | |
import { getMainDefinition } from 'apollo-utilities'; | |
import {setContext} from 'apollo-link-context' | |
import {InMemoryCache} from 'apollo-cache-inmemory' | |
import {ApolloClient} from 'apollo-client' | |
const authLink = setContext((_, {headers}) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react' | |
import {apolloClient} from './client' | |
import {ApolloProvider} from '@apollo/react-hooks' | |
class App extends Component { | |
render() { | |
return ( | |
<ApolloProvider client={apolloClient}> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Newtonsoft.Json; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace bha | |
{ | |
public class GraphQL | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Converters; | |
namespace bha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Converters; | |
namespace bha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"fields": [], "products": [{"tags": [], "title": "aaDe", "tagIds": [], "variants": [{"salePrice": 11, "regularPrice": 11, "productBaseVariantId": "bpoa7pjipt317j4an5e0"}, {"salePrice": 11, "regularPrice": 1, "productBaseVariantId": "bpoa7pjipt317j4an5fg"}, {"salePrice": 1, "regularPrice": 1, "productBaseVariantId": "bpoa7pjipt317j4an5h0"}, {"salePrice": 1, "regularPrice": 1, "productBaseVariantId": "bpoa7pjipt317j4an5ig"}], "collections": [], "description": "<p>Desc</p>\n", "collectionIds": [], "productBaseId": "bplfi8jipt33a3hlah4g", "shortDescription": "<p>short</p>\n"}, {"tags": [], "title": "aaDe", "tagIds": [], "variants": [{"salePrice": 2, "regularPrice": 2, "productBaseVariantId": "bplfiobipt33a3hlah8g"}, {"salePrice": 2, "regularPrice": 2, "productBaseVariantId": "bplfiobipt33a3hlah90"}, {"salePrice": 2, "regularPrice": 2, "productBaseVariantId": "bplfiobipt33a3hlah9g"}], "collections": [], "description": "<p>Desc</p>\n", "collectionIds": [], "productBaseId": "bplfiobipt33a3hlah7g", "shortDescription |