mirror of https://github.com/pulumi/pulumi.git
10 lines
312 B
TypeScript
10 lines
312 B
TypeScript
// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
|
|
|
|
import { Resource } from "./resource";
|
|
|
|
// Step 2: Reverse the dependency graph.
|
|
// Checkpoint dependency graph: b -> a
|
|
const b = new Resource("b", { state: 2 })
|
|
const a = new Resource("a", { state: 1, resource: b })
|
|
// Dependency graph: a -> b
|