Skip to content

Instantly share code, notes, and snippets.

Avatar

Grant Norwood grantnorwood

View GitHub Profile
View VacationRental-frictionless-experience.graphql
# ...
type VacationRental {
id: ID!
title: String # removed the !
description: String # removed the !
owner: Owner!
roomCount: Int # removed the !
address: Address # removed the !
geolocation: GeoLocation # removed the !
View VacationRental-final-schema.graphql
type Query {
vacationRentalById(id: $id) : VacationRental
}
type VacationRental {
id: ID!
title: String
description: String
owner: Owner!
roomCount: Int
View VacationRental-describe-your-domain.graphql
# ...
type Owner {
name: String!
email: String!
phone: String!
twitterHandle: String # removed the !
inboxNotifications: [Notification]
}
View VacationRental-fail-gracefully.graphql
# ...
type Owner {
name: String!
email: String!
phone: String!
twitterHandle: String!
inboxNotifications: [Notification] # removed the !
}
@grantnorwood
grantnorwood / VacationRental-initial-schema.graphql
Last active Jul 20, 2019
GraphQL Nullability - Initial non-nullable schema
View VacationRental-initial-schema.graphql
### Initial schema
type Query {
vacationRentalById(id: $id) : VacationRental
}
type VacationRental {
id: ID!
title: String!
description: String!
View blurTheLines.md
@grantnorwood
grantnorwood / is_blog_page.php
Created Aug 17, 2012
WordPress' missing is_blog_page() function. Determines if the currently viewed page is one of the blog pages, including the blog home page, archive, category/tag, author, or single post pages.
View is_blog_page.php
<?php
/**
* WordPress' missing is_blog_page() function. Determines if the currently viewed page is
* one of the blog pages, including the blog home page, archive, category/tag, author, or single
* post pages.
*
* @see http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/query.php#L1572
*
* @return bool
You can’t perform that action at this time.